Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport uint64 fix
Browse files Browse the repository at this point in the history
skosito committed Oct 4, 2024
1 parent 822f4f4 commit ed5fddc
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/contracts/Revert.sol
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ struct RevertOptions {
/// @param revertMessage Arbitrary data sent back in onRevert.
struct RevertContext {
address asset;
uint64 amount;
uint256 amount;
bytes revertMessage;
}

2 changes: 1 addition & 1 deletion v2/test/GatewayEVM.t.sol
Original file line number Diff line number Diff line change
@@ -217,7 +217,7 @@ contract GatewayEVMTest is Test, IGatewayEVMErrors, IGatewayEVMEvents, IReceiver
}

function testForwardCallToReceiveOnRevertFails() public {
bytes memory data = abi.encodeWithSignature("onRevert((address,uint64,bytes))");
bytes memory data = abi.encodeWithSignature("onRevert((address,uint256,bytes))");

vm.prank(tssAddress);
vm.expectRevert(NotAllowedToCallOnRevert.selector);

0 comments on commit ed5fddc

Please sign in to comment.