Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Nov 18, 2024
1 parent 0539321 commit 257a3ad
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions v2/contracts/zevm/GatewayZEVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,11 @@ contract GatewayZEVM is

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

if (!IZRC20(zrc20).deposit(target, amount)) revert ZRC20DepositFailed();
UniversalContract(target).onCall(context, zrc20, leftGas, message);
UniversalContract(target).onCall(context, zrc20, testValue, message);
}

/// @notice Deposit ZETA and call a user-specified contract on ZEVM.
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 257a3ad

Please sign in to comment.