Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Oct 17, 2024
1 parent 0794852 commit 3c44bb0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
13 changes: 9 additions & 4 deletions e2e/e2etests/test_v2_eth_withdraw_and_call_revert.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ func TestV2ETHWithdrawAndCallRevert(r *runner.E2ERunner, args []string) {
require.EqualValues(r, int64(0), balance.Int64())

// perform the withdraw
tx := r.V2ETHWithdrawAndArbitraryCall(r.TestDAppV2EVMAddr, amount, r.EncodeGasCall("revert"), gatewayzevm.RevertOptions{
RevertAddress: revertAddress,
OnRevertGasLimit: big.NewInt(0),
})
tx := r.V2ETHWithdrawAndArbitraryCall(
r.TestDAppV2EVMAddr,
amount,
r.EncodeGasCall("revert"),
gatewayzevm.RevertOptions{
RevertAddress: revertAddress,
OnRevertGasLimit: big.NewInt(0),
},
)

// wait for the cctx to be mined
cctx := utils.WaitCctxMinedByInboundHash(r.Ctx, tx.Hash().Hex(), r.CctxClient, r.Logger, r.CctxTimeout)
Expand Down
10 changes: 7 additions & 3 deletions e2e/e2etests/test_v2_zevm_to_evm_arbitrary_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ func TestV2ZEVMToEVMArbitraryCall(r *runner.E2ERunner, args []string) {
r.ApproveETHZRC20(r.GatewayZEVMAddr)

// perform the call
tx := r.V2ZEVMToEMVArbitraryCall(r.TestDAppV2EVMAddr, r.EncodeSimpleCall(payloadMessageEVMCall), gatewayzevm.RevertOptions{
OnRevertGasLimit: big.NewInt(0),
})
tx := r.V2ZEVMToEMVArbitraryCall(
r.TestDAppV2EVMAddr,
r.EncodeSimpleCall(payloadMessageEVMCall),
gatewayzevm.RevertOptions{
OnRevertGasLimit: big.NewInt(0),
},
)

// wait for the cctx to be mined
cctx := utils.WaitCctxMinedByInboundHash(r.Ctx, tx.Hash().Hex(), r.CctxClient, r.Logger, r.CctxTimeout)
Expand Down
9 changes: 8 additions & 1 deletion zetaclient/chains/evm/signer/v2_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,14 @@ func (signer *Signer) signERC20CustodyWithdrawAndCall(
messageContext.Sender = common.Address{}
}

data, err := erc20CustodyV2ABI.Pack("withdrawAndCall", messageContext, txData.to, txData.asset, txData.amount, txData.message)
data, err := erc20CustodyV2ABI.Pack(
"withdrawAndCall",
messageContext,
txData.to,
txData.asset,
txData.amount,
txData.message,
)
if err != nil {
return nil, fmt.Errorf("withdraw pack error: %w", err)
}
Expand Down

0 comments on commit 3c44bb0

Please sign in to comment.