ethclient: fix forwarding 1559 gas fields (#28462)

This commit is contained in:
Daniel Liu 2024-06-12 17:55:20 +08:00
parent f23e1a648c
commit 4340e7b6f4

View file

@ -579,5 +579,11 @@ 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
}