Skip to content

Commit e91cdb4

Browse files
authored
ethclient: fix forwarding 1559 gas fields (#28462)
1 parent b1cec85 commit e91cdb4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ethclient/ethclient.go

+6
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
658658
if msg.GasPrice != nil {
659659
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice)
660660
}
661+
if msg.GasFeeCap != nil {
662+
arg["maxFeePerGas"] = (*hexutil.Big)(msg.GasFeeCap)
663+
}
664+
if msg.GasTipCap != nil {
665+
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
666+
}
661667
return arg
662668
}
663669

0 commit comments

Comments
 (0)