Skip to content

Commit

Permalink
check all topics in crossl2inbox test, run pnpm snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
AmadiMichael authored and tynes committed Aug 7, 2024
1 parent 03a99e5 commit e0209d4
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 3 deletions.
50 changes: 50 additions & 0 deletions packages/contracts-bedrock/snapshots/abi/CrossL2Inbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,51 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "logIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "timestamp",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
}
],
"internalType": "struct ICrossL2Inbox.Identifier",
"name": "_id",
"type": "tuple"
},
{
"internalType": "bytes32",
"name": "_msgHash",
"type": "bytes32"
}
],
"name": "validateMessage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
Expand Down Expand Up @@ -188,6 +233,11 @@
"name": "NotEntered",
"type": "error"
},
{
"inputs": [],
"name": "ReentrantCall",
"type": "error"
},
{
"inputs": [],
"name": "TargetCallFailed",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
[]
[
{
"inputs": [],
"name": "NotEntered",
"type": "error"
},
{
"inputs": [],
"name": "ReentrantCall",
"type": "error"
}
]
4 changes: 2 additions & 2 deletions packages/contracts-bedrock/test/L2/CrossL2Inbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ contract CrossL2InboxTest is Test {
vm.expectCall({ callee: _target, msgValue: _value, data: _message });

// Look for the emit ExecutingMessage event
vm.expectEmit(true, false, false, true, Predeploys.CROSS_L2_INBOX);
vm.expectEmit(true, true, true, true, Predeploys.CROSS_L2_INBOX);
emit CrossL2Inbox.ExecutingMessage(keccak256(_message), _id);

// Call the executeMessage function
Expand Down Expand Up @@ -283,7 +283,7 @@ contract CrossL2InboxTest is Test {
});

// Look for the emit ExecutingMessage event
vm.expectEmit(true, false, false, true, Predeploys.CROSS_L2_INBOX);
vm.expectEmit(true, true, true, true, Predeploys.CROSS_L2_INBOX);
emit CrossL2Inbox.ExecutingMessage(_messageHash, _id);

// Call the validateMessage function
Expand Down

0 comments on commit e0209d4

Please sign in to comment.