Skip to content

Commit

Permalink
fix(docs): Update entrypoint details on accounts page (#8184)
Browse files Browse the repository at this point in the history
Updates some outdated info about the `msg_sender` in different contexts
  • Loading branch information
critesjosh authored Aug 29, 2024
1 parent 6ae2535 commit 8453ec7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/docs/aztec/concepts/accounts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ As an example, we can think of a lottery contract, where at some point a prize n
Notice that the Signerless wallet doesn't invoke an entrypoint function of an account contract but instead invokes the target contract function directly.

:::info
In case no contract entrypoint is used `msg_sender` is set to 0.
Entrypoints for the following cases:
- if no contract entrypoint is used `msg_sender` is set to `Field.max`.
- in a private to public entrypoint, `msg_sender` is the contract making the private to public call
- when calling the entrypoint on an account contract, `msg_sender` is set to the account contract address
:::

### Account initialization
Expand Down

0 comments on commit 8453ec7

Please sign in to comment.