diff --git a/v2/src/evm/GatewayEVM.sol b/v2/src/evm/GatewayEVM.sol index db1a8507..b2e0b324 100644 --- a/v2/src/evm/GatewayEVM.sol +++ b/v2/src/evm/GatewayEVM.sol @@ -160,7 +160,7 @@ contract GatewayEVM is if (!resetApproval(token, to)) revert ApprovalFailed(); if (!IERC20(token).approve(to, amount)) revert ApprovalFailed(); // Execute the call on the target contract - bytes memory result = _execute(to, data); + _execute(to, data); // Reset approval if (!resetApproval(token, to)) revert ApprovalFailed(); diff --git a/v2/test/GatewayEVM.t.sol b/v2/test/GatewayEVM.t.sol index 5027e3f1..09ec60e4 100644 --- a/v2/test/GatewayEVM.t.sol +++ b/v2/test/GatewayEVM.t.sol @@ -164,7 +164,7 @@ contract GatewayEVMTest is Test, IGatewayEVMErrors, IGatewayEVMEvents, IReceiver gateway.execute(address(receiver), data); } - function testExecuteWithERC20FailsIfNotCustoryOrConnector() public { + function testExecuteWithERC20FailsIfNotCustodyOrConnector() public { uint256 amount = 100_000; bytes memory data = abi.encodeWithSignature("receiveERC20(uint256,address,address)", amount, address(token), destination); @@ -174,7 +174,7 @@ contract GatewayEVMTest is Test, IGatewayEVMErrors, IGatewayEVMEvents, IReceiver gateway.executeWithERC20(address(token), destination, amount, data); } - function testRevertWithERC20FailsIfNotCustoryOrConnector() public { + function testRevertWithERC20FailsIfNotCustodyOrConnector() public { uint256 amount = 100_000; bytes memory data = abi.encodeWithSignature("receiveERC20(uint256,address,address)", amount, address(token), destination);