Skip to content

Commit 8bd49ab

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 6170bfe commit 8bd49ab

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
@@ -686,6 +686,12 @@ func toCallArg(msg ethereum.CallMsg) interface{} {
686686
if msg.AccessList != nil {
687687
arg["accessList"] = msg.AccessList
688688
}
689+
if msg.BlobGasFeeCap != nil {
690+
arg["maxFeePerBlobGas"] = (*hexutil.Big)(msg.BlobGasFeeCap)
691+
}
692+
if msg.BlobHashes != nil {
693+
arg["blobVersionedHashes"] = msg.BlobHashes
694+
}
689695
return arg
690696
}
691697

interfaces.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ type CallMsg struct {
143143

144144
AccessList types.AccessList // EIP-2930 access list.
145145

146+
// For BlobTxType
147+
BlobGasFeeCap *big.Int
148+
BlobHashes []common.Hash
149+
146150
// scroll-related:
147151
// not need to have a `IsL1MessageTx` field, should always be false
148152
}

0 commit comments

Comments
 (0)