Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Oct 17, 2024
1 parent ac24365 commit 965b125
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions v2/test/GatewayEVM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ contract GatewayEVMInboundTest is Test, IGatewayEVMErrors, IGatewayEVMEvents, IR
token.approve(address(gateway), amount);

vm.expectEmit(true, true, true, true, address(gateway));
emit Deposited(owner, destination, amount, address(token), payload, revertOptions);
emit DepositedAndCalled(owner, destination, amount, address(token), payload, revertOptions);
gateway.depositAndCall(destination, amount, address(token), payload, revertOptions);

uint256 custodyBalanceAfter = token.balanceOf(address(custody));
Expand Down Expand Up @@ -630,7 +630,7 @@ contract GatewayEVMInboundTest is Test, IGatewayEVMErrors, IGatewayEVMEvents, IR
bytes memory payload = abi.encodeWithSignature("hello(address)", destination);

vm.expectEmit(true, true, true, true, address(gateway));
emit Deposited(owner, destination, amount, address(0), payload, revertOptions);
emit DepositedAndCalled(owner, destination, amount, address(0), payload, revertOptions);
gateway.depositAndCall{ value: amount }(destination, payload, revertOptions);

uint256 tssBalanceAfter = tssAddress.balance;
Expand Down
2 changes: 1 addition & 1 deletion v2/test/GatewayEVMZEVM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ contract GatewayEVMZEVMTest is
bytes memory message = abi.encodeWithSelector(receiverEVM.receivePayable.selector, str, num, flag);
uint256 expectedGasFee = 1;
vm.expectEmit(true, true, true, true, address(gatewayZEVM));
emit Withdrawn(
emit WithdrawnAndCalled(
ownerZEVM,
0,
abi.encodePacked(receiverEVM),
Expand Down
4 changes: 2 additions & 2 deletions v2/test/GatewayZEVM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ contract GatewayZEVMInboundTest is Test, IGatewayZEVMEvents, IGatewayZEVMErrors
uint256 expectedGasFee = 1;
uint256 gasLimit = 1;
vm.expectEmit(true, true, true, true, address(gateway));
emit Withdrawn(
emit WithdrawnAndCalled(
owner,
0,
abi.encodePacked(addr1),
Expand Down Expand Up @@ -329,7 +329,7 @@ contract GatewayZEVMInboundTest is Test, IGatewayZEVMEvents, IGatewayZEVMErrors
uint256 expectedGasFee = 1;
uint256 gasLimit = 1;
vm.expectEmit(true, true, true, true, address(gateway));
emit Withdrawn(
emit WithdrawnAndCalled(
owner,
0,
abi.encodePacked(addr1),
Expand Down

0 comments on commit 965b125

Please sign in to comment.