Skip to content

Commit 9d537f5

Browse files
mask-ppfjl
andauthored
ethereum, ethclient: add blob transaction fields in CallMsg (#28989)
Co-authored-by: Felix Lange <[email protected]>
1 parent 8321fe2 commit 9d537f5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ethclient/ethclient.go

+6
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
665665
if msg.AccessList != nil {
666666
arg["accessList"] = msg.AccessList
667667
}
668+
if msg.BlobGasFeeCap != nil {
669+
arg["maxFeePerBlobGas"] = (*hexutil.Big)(msg.BlobGasFeeCap)
670+
}
671+
if msg.BlobHashes != nil {
672+
arg["blobVersionedHashes"] = msg.BlobHashes
673+
}
668674
return arg
669675
}
670676

interfaces.go

+4
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ type CallMsg struct {
152152
Data []byte // input data, usually an ABI-encoded contract method invocation
153153

154154
AccessList types.AccessList // EIP-2930 access list.
155+
156+
// For BlobTxType
157+
BlobGasFeeCap *big.Int
158+
BlobHashes []common.Hash
155159
}
156160

157161
// A ContractCaller provides contract calls, essentially transactions that are executed by

0 commit comments

Comments
 (0)