Skip to content

Commit 8d6eb6a

Browse files
committed
wrap event block in solidity markdown
1 parent ae4be62 commit 8d6eb6a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ecosystem/l2tol2cdm-gasreceipt.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ Support can be enumerated in 2 parts.
6363

6464
With nested cross domain calls, there's no way to correlate the subsequent messages with the original `tx.origin`, as each message has a unique message hash associated with it. By introducing a new field, "headers" or "context" that are appropriately propogated as nested cross domain calls are made, we can introduce contextual information unrelated to the cross domain message itself.
6565

66-
event SentMessage(uint256 indexed destination, address indexed target, uint256 indexed messageNonce, address sender, bytes message, bytes context);
66+
```solidity
67+
event SentMessage(uint256 indexed destination, address indexed target, uint256 indexed messageNonce, address sender, bytes message, bytes context);
68+
```
6769

6870
This added context should be versioned such that the propogated information can evolve over time to fit various needs. In this first iteration, we propose encoding the root-most `messageHash`, the `tx.origin` of that root call, and `call depth` of the cross domain message. This information is made availble in transient storage when relaying a message so that any further outbound messages simply forwards the appropriate context, rather than repopoulate an entirely new one.
6971

@@ -104,7 +106,9 @@ We include the `block.basefee` and not the `tx.gasprice`, so that the priority f
104106

105107
New Event:
106108

107-
event RelayedMessageGasReceipt(bytes32 indexed msgHash, bytes32 indexed rootMsgHash, uint256 indexed depth, address indexed txOrigin, uint256 baseFee, uint256 gasUsed)
109+
```solidity
110+
event RelayedMessageGasReceipt(bytes32 indexed msgHash, bytes32 indexed rootMsgHash, uint256 indexed depth, address indexed txOrigin, uint256 baseFee, uint256 gasUsed)
111+
```
108112

109113
```solidity
110114
function relayMessage(...) {

0 commit comments

Comments
 (0)