Skip to content

Commit

Permalink
remaining fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Oct 16, 2024
1 parent a389cc2 commit dce6322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions v2/test/GatewayZEVM.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 });
Expand Down
4 changes: 2 additions & 2 deletions v2/test/ZRC20.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@ 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 {
vm.prank(protocolAddress);
systemContract.setGasPrice(1, 0);

vm.expectRevert(ZeroGasPrice.selector);
(address gasZRC20, uint256 gasFee) = zrc20.withdrawGasFee();
zrc20.withdrawGasFee();
}

function testWithdraw() public {
Expand Down

0 comments on commit dce6322

Please sign in to comment.