Skip to content

Commit

Permalink
fix(docs): update import (#4451)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari authored and TomAFrench committed Feb 7, 2024
1 parent f11eb61 commit 0d16f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/developers/contracts/portals/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The portal must ensure that the sender is as expected. One way to do this is to

To send a message to L1 from your Aztec contract, you must use the `message_portal` function on the `context`. When messaging to L1, only the `content` is required (as a `Field`).

#include_code context_message_portal /yarn-project/aztec-nr/aztec/src/context.nr rust
#include_code context_message_portal /yarn-project/aztec-nr/aztec/src/context/private.nr rust

When sending a message from L2 to L1 we don't need to pass recipient, deadline, secret nor fees. Recipient is populated with the attached portal and the remaining values are not needed as the message is inserted into the outbox at the same time as it was included in a block (for the inbox it could be inserted and then only included in rollup block later).

Expand Down

0 comments on commit 0d16f5b

Please sign in to comment.