Skip to content

Commit

Permalink
ethclient: fix forwarding 1559 gas fields (#28462)
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe authored Nov 3, 2023
1 parent b1cec85 commit e91cdb4
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 @@ -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
}

Expand Down

0 comments on commit e91cdb4

Please sign in to comment.