Skip to content

Commit

Permalink
set check back
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 18, 2024
1 parent 2ee98c3 commit 0539321
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion v2/contracts/zevm/GatewayZEVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ contract GatewayZEVM is
if (target == PROTOCOL_ADDRESS || target == address(this)) revert InvalidTarget();

// TODO: remove after the protocol upgrad with this change: https://github.com/zeta-chain/node/pull/3106
// if (gasleft() > MAX_GAS_LIMIT) revert GasLimitExceeded();
uint256 leftGas = uint256(gasleft());
if (leftGas > MAX_GAS_LIMIT) revert GasLimitExceeded();

if (!IZRC20(zrc20).deposit(target, amount)) revert ZRC20DepositFailed();
UniversalContract(target).onCall(context, zrc20, leftGas, message);
Expand Down
2 changes: 1 addition & 1 deletion v2/pkg/gatewayevmzevm.t.sol/gatewayevmzevmtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.sol/gatewayzevm.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.t.sol/gatewayzevminboundtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/gatewayzevm.t.sol/gatewayzevmoutboundtest.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/pkg/zrc20.t.sol/zrc20test.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion v2/types/factories/GatewayZEVM__factory.ts

Large diffs are not rendered by default.

0 comments on commit 0539321

Please sign in to comment.