add maxFeePerBlobGas and blobVersionedHashes in toCallArg

This commit is contained in:
colinlyguo 2024-03-08 15:50:13 +08:00
parent c41105ce80
commit ababa579ea
No known key found for this signature in database
GPG key ID: 82E123BE1B68288B

View file

@ -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
}