Skip to content

Commit 1a24995

Browse files
authored
Update context.md
1 parent 4b9d061 commit 1a24995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/concepts/context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ There are six types of `ctx` variables.
1010
| `ctx.this` | The identity of the smart contract where this variable is used. | Constant. Never changed. Use for giving smart contracts rights and accounts. |
1111
| `ctx.signer` | The top-level signer of the transaction. This is constant throughout the transaction's execution | |
1212
| `ctx.owner` | The owner of the contract, which is an optional field that can be set on time of submission. | If this field is set, only the `ctx.owner` can call any of the functions on the smart contract. This allows for a parent-child model. |
13-
| `ctx.entry` | The entry function and contract as a tuple. | If a contract calls another contract, you can use it to know if it was called by another contract. |
13+
| `ctx.entry` | The entry function and contract as a tuple. | ctx.entry can help you distinguish a caller (either user or contract) and if the caller is a contract, it will inform you about the method from which that contract called your contract. |
1414
| `ctx.submission_name` | The name of the submission contract, usually 'submission'. | |
1515

1616
### ctx.caller

0 commit comments

Comments
 (0)