ethclient/gethclient: add blob transaction fields in toCallArg (#29198)

This commit is contained in:
colin 2024-03-08 19:13:46 +08:00 committed by GitHub
parent c41105ce80
commit d35c8f0c25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -245,6 +245,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
if msg.AccessList != nil {
arg["accessList"] = msg.AccessList
}
if msg.BlobGasFeeCap != nil {
arg["maxFeePerBlobGas"] = (*hexutil.Big)(msg.BlobGasFeeCap)
}
if msg.BlobHashes != nil {
arg["blobVersionedHashes"] = msg.BlobHashes
}
return arg
}