ethereum, ethclient: add blob transaction fields in CallMsg (#28989)

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
maskpp
2024-02-15 10:08:46 +01:00
committed by GitHub
co-authored by Felix Lange
parent 8321fe2fda
commit 9d537f5439
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -665,6 +665,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
}