Skip to content

Commit

Permalink
ethclient: fix forwarding 1559 gas fields (ethereum#28462)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Oct 31, 2024
1 parent 99a697b commit feb40cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit feb40cc

Please sign in to comment.