Skip to content

Commit

Permalink
chore: enhance mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDiscotech committed Aug 14, 2024
1 parent 7157066 commit 5dcb3a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@ contract MockL2ToL2Messenger is ITestL2ToL2CrossDomainMessenger {
// TODO: Add more logic? Like replacing the `TSTORE` updates with `SSTORE` - or add the checks

(bool succ, bytes memory ret) = _target.call{ value: msg.value }(_message);

if (!succ) revert(string(ret));
}

// TODO
function crossDomainMessageSource() external view returns (uint256 _source) {
_source = block.chainid;
_source = block.chainid + 1;
}

function crossDomainMessageSender() external view returns (address _sender) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ contract OptimismSuperchainERC20_SymTest is HalmosTest {
vm.assume(_to != address(0));
MESSENGER.forTest_setCurrentXDomSender(address(optimismSuperchainERC20));

vm.prank(_sender);
vm.prank(address(MESSENGER));
try optimismSuperchainERC20.relayERC20(_from, _to, _amount) {
console.log(7);
assert(_sender == address(MESSENGER));
Expand Down

0 comments on commit 5dcb3a8

Please sign in to comment.