Skip to content

Commit

Permalink
remove checl
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 15, 2024
1 parent 64e0810 commit 66bb04e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions v2/contracts/zevm/GatewayZEVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ contract GatewayZEVM is
if (zrc20 == address(0) || target == address(0)) revert ZeroAddress();

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

UniversalContract(target).onCall(context, zrc20, amount, message);
}
Expand Down Expand Up @@ -383,7 +383,7 @@ 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();
// if (gasleft() > MAX_GAS_LIMIT) revert GasLimitExceeded();

if (!IZRC20(zrc20).deposit(target, amount)) revert ZRC20DepositFailed();
UniversalContract(target).onCall(context, zrc20, amount, message);
Expand All @@ -410,7 +410,7 @@ 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();
// if (gasleft() > MAX_GAS_LIMIT) revert GasLimitExceeded();

_transferZETA(amount, target);
UniversalContract(target).onCall(context, zetaToken, amount, message);
Expand All @@ -431,7 +431,7 @@ contract GatewayZEVM is
if (target == address(0)) revert ZeroAddress();

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

Revertable(target).onRevert(revertContext);
}
Expand All @@ -457,7 +457,7 @@ 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();
// if (gasleft() > MAX_GAS_LIMIT) revert GasLimitExceeded();

if (!IZRC20(zrc20).deposit(target, amount)) revert ZRC20DepositFailed();
Revertable(target).onRevert(revertContext);
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 66bb04e

Please sign in to comment.