From dce632234786924b826038252cd57d543b41a987 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 16 Oct 2024 14:13:31 +0200 Subject: [PATCH] remaining fixes --- v2/test/GatewayZEVM.t.sol | 4 ---- v2/test/ZRC20.t.sol | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/v2/test/GatewayZEVM.t.sol b/v2/test/GatewayZEVM.t.sol index 2b799bb6..d3a787f9 100644 --- a/v2/test/GatewayZEVM.t.sol +++ b/v2/test/GatewayZEVM.t.sol @@ -542,9 +542,6 @@ contract GatewayZEVMInboundTest is Test, IGatewayZEVMEvents, IGatewayZEVMErrors function testWithdrawZETAWithCallOptsWithMessageFailsIfGasLimitIsZero() public { uint256 amount = 1; - uint256 ownerBalanceBefore = zetaToken.balanceOf(owner); - uint256 gatewayBalanceBefore = zetaToken.balanceOf(address(gateway)); - uint256 protocolAddressBalanceBefore = protocolAddress.balance; bytes memory message = abi.encodeWithSignature("hello(address)", addr1); uint256 chainId = 1; @@ -1005,7 +1002,6 @@ contract GatewayZEVMOutboundTest is Test, IGatewayZEVMEvents, IGatewayZEVMErrors } function testDepositZETAAndCallUniversalContractFailsIfZeroAddress() public { - uint256 destinationBalanceBefore = address(testUniversalContract).balance; bytes memory message = abi.encode("hello"); MessageContext memory context = MessageContext({ origin: abi.encodePacked(address(gateway)), sender: protocolAddress, chainID: 1 }); diff --git a/v2/test/ZRC20.t.sol b/v2/test/ZRC20.t.sol index ae71216e..9b5922c6 100644 --- a/v2/test/ZRC20.t.sol +++ b/v2/test/ZRC20.t.sol @@ -226,7 +226,7 @@ contract ZRC20Test is Test, ZRC20Errors { systemContract.setGasCoinZRC20(1, address(0)); vm.expectRevert(ZeroGasCoin.selector); - (address gasZRC20, uint256 gasFee) = zrc20.withdrawGasFee(); + zrc20.withdrawGasFee(); } function testWithdrawGasFeeFailsIfGasPriceNotSetForChainId() public { @@ -234,7 +234,7 @@ contract ZRC20Test is Test, ZRC20Errors { systemContract.setGasPrice(1, 0); vm.expectRevert(ZeroGasPrice.selector); - (address gasZRC20, uint256 gasFee) = zrc20.withdrawGasFee(); + zrc20.withdrawGasFee(); } function testWithdraw() public {