Skip to content

Commit 2f50d4b

Browse files
mask-ppfjl
authored andcommitted
ethereum, ethclient: add blob transaction fields in CallMsg (ethereum#28989)
Co-authored-by: Felix Lange <[email protected]>
1 parent b0f13df commit 2f50d4b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ethclient/ethclient.go

Lines changed: 6 additions & 0 deletions
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

Lines changed: 4 additions & 0 deletions
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)