ethclient: fix forwarding 1559 gas fields (#28462)

pull/28464/head
Péter Szilágyi 11 months ago committed by GitHub
parent b1cec853be
commit e91cdb49be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ethclient/ethclient.go

@ -658,6 +658,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
if msg.GasPrice != nil {
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
}
if msg.GasFeeCap != nil {
arg["maxFeePerGas"] = (*hexutil.Big)(msg.GasFeeCap)
}
if msg.GasTipCap != nil {
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
}
return arg
}

Loading…
Cancel
Save