Skip to content

Commit

Permalink
test: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeroman committed Nov 14, 2024
1 parent 6c3e3f0 commit 5ec0dbd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/OpReceiverProxyTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ contract OpReceiverProxyTest is Test {
amount - (amount * opReceiverProxy.FEE_BPS()) / 1e18
);
}

function test_onlyHyperlaneMailboxCanHandle() public {
vm.prank(user);
vm.expectRevert(OpReceiverProxy.Unauthorized.selector);
opReceiverProxy.handle(
senderChainId,
bytes32(uint256(uint160(opSenderProxy))),
abi.encode(0, user, 1 ether)
);
}
}

0 comments on commit 5ec0dbd

Please sign in to comment.