Skip to content

Commit 8d51eb8

Browse files
committed
sent message context
sentmessage.context
1 parent 4aedb3f commit 8d51eb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

specs/interop/predeploys.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
44
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5+
56
**Table of Contents**
67

78
- [Overview](#overview)
@@ -390,7 +391,7 @@ which is used to track whether the message has successfully been relayed.
390391
It also emits a `SentMessage` event with the necessary metadata to execute when relayed on the destination chain.
391392

392393
```solidity
393-
event SentMessage(uint256 indexed destination, address indexed target, uint256 indexed messageNonce, address sender, bytes message);
394+
event SentMessage(uint256 indexed destination, address indexed target, uint256 indexed messageNonce, address sender, bytes message, bytes context);
394395
```
395396

396397
An explicit `_destination` chain and `nonce` are used to ensure that the message can only be played on a single remote
@@ -406,6 +407,8 @@ it will be the `L2ToL2CrossDomainMessenger` and users will need to callback to g
406407
The `_destination` MUST NOT be the chain-ID of the local chain and a locally defined `nonce` MUST increment on
407408
every call to `sendMessage`.
408409

410+
Messages might also contain some internal context with metadata, analogous to headers with HTTP requests.
411+
409412
Note that `sendMessage` is not `payable`.
410413

411414
### Re-sending Messages
@@ -421,6 +424,7 @@ mapping prior to emitting the `SentMessage` event.
421424
address _sender,
422425
address _target,
423426
bytes calldata _message
427+
bytes calldata _context
424428
)
425429
external;
426430
```

0 commit comments

Comments
 (0)