ethclient: apply accessList field in toCallArg (#28832)

Co-authored-by: Felix Lange <fjl@twurst.com>
pull/28850/head
colin 10 months ago committed by GitHub
parent 0e93da3197
commit 1c488298c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      ethclient/ethclient.go
  2. 9
      ethclient/gethclient/gethclient.go

@ -662,6 +662,9 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
if msg.GasTipCap != nil { if msg.GasTipCap != nil {
arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap) arg["maxPriorityFeePerGas"] = (*hexutil.Big)(msg.GasTipCap)
} }
if msg.AccessList != nil {
arg["accessList"] = msg.AccessList
}
return arg return arg
} }

@ -236,6 +236,15 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
if msg.GasPrice != nil { if msg.GasPrice != nil {
arg["gasPrice"] = (*hexutil.Big)(msg.GasPrice) 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)
}
if msg.AccessList != nil {
arg["accessList"] = msg.AccessList
}
return arg return arg
} }

Loading…
Cancel
Save