ethereum, ethclient: add blob transaction fields in CallMsg (#28989)
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
8321fe2fda
commit
9d537f5439
|
@ -665,6 +665,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
|
||||||
if msg.AccessList != nil {
|
if msg.AccessList != nil {
|
||||||
arg["accessList"] = msg.AccessList
|
arg["accessList"] = msg.AccessList
|
||||||
}
|
}
|
||||||
|
if msg.BlobGasFeeCap != nil {
|
||||||
|
arg["maxFeePerBlobGas"] = (*hexutil.Big)(msg.BlobGasFeeCap)
|
||||||
|
}
|
||||||
|
if msg.BlobHashes != nil {
|
||||||
|
arg["blobVersionedHashes"] = msg.BlobHashes
|
||||||
|
}
|
||||||
return arg
|
return arg
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,6 +152,10 @@ type CallMsg struct {
|
||||||
Data []byte // input data, usually an ABI-encoded contract method invocation
|
Data []byte // input data, usually an ABI-encoded contract method invocation
|
||||||
|
|
||||||
AccessList types.AccessList // EIP-2930 access list.
|
AccessList types.AccessList // EIP-2930 access list.
|
||||||
|
|
||||||
|
// For BlobTxType
|
||||||
|
BlobGasFeeCap *big.Int
|
||||||
|
BlobHashes []common.Hash
|
||||||
}
|
}
|
||||||
|
|
||||||
// A ContractCaller provides contract calls, essentially transactions that are executed by
|
// A ContractCaller provides contract calls, essentially transactions that are executed by
|
||||||
|
|
Loading…
Reference in New Issue