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

Co-authored-by: Felix Lange <fjl@twurst.com>
pull/28994/head
maskpp 7 months ago committed by GitHub
parent 8321fe2fda
commit 9d537f5439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      ethclient/ethclient.go
  2. 4
      interfaces.go

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

@ -152,6 +152,10 @@ type CallMsg struct {
Data []byte // input data, usually an ABI-encoded contract method invocation
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

Loading…
Cancel
Save