Skip to content

Commit

Permalink
contracts-bedrock: add vm.expectCall to CrossL2Inbox.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfuturistic committed Mar 22, 2024
1 parent e4d24c2 commit 7fa84c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/contracts-bedrock/test/L2/CrossL2Inbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ contract CrossL2InboxTest is Test {
});

vm.prank(tx.origin);
vm.expectCall(address(0), hex"1234");
crossL2Inbox.executeMessage({ _id: sampleIdentifier, _target: address(0), _msg: hex"1234" });
}

Expand All @@ -118,6 +119,7 @@ contract CrossL2InboxTest is Test {
});

vm.prank(tx.origin);
vm.expectCall(address(0), hex"1234");
vm.expectRevert("CrossL2Inbox: target call failed");
crossL2Inbox.executeMessage({ _id: sampleIdentifier, _target: address(0), _msg: hex"1234" });
}
Expand Down

0 comments on commit 7fa84c4

Please sign in to comment.