Skip to content

Commit

Permalink
fix: invalid gas arg combination (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
byte-bandit authored Apr 24, 2024
1 parent f46c40e commit b5c052a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chain/evm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit b5c052a

Please sign in to comment.