From b5c052ae68402f54449adfa2ff505ddd7d0d3696 Mon Sep 17 00:00:00 2001 From: Christian Lohr Date: Wed, 24 Apr 2024 17:54:18 +0200 Subject: [PATCH] fix: invalid gas arg combination (#369) --- chain/evm/client.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chain/evm/client.go b/chain/evm/client.go index d30f0019..71bf9dc6 100644 --- a/chain/evm/client.go +++ b/chain/evm/client.go @@ -351,6 +351,7 @@ func callSmartContract( if args.txType == 2 { txOpts.GasFeeCap = gasPrice txOpts.GasTipCap = gasTipCap + txOpts.GasPrice = nil logger.WithFields(log.Fields{ "gas-limit": txOpts.GasLimit, "gas-max-price": txOpts.GasFeeCap, @@ -360,6 +361,8 @@ func callSmartContract( }).Debug("executing eip-1559 tx") } else { txOpts.GasPrice = gasPrice + txOpts.GasFeeCap = nil + txOpts.GasTipCap = nil logger.WithFields(log.Fields{ "gas-limit": txOpts.GasLimit, "gas-price": txOpts.GasPrice,