Skip to content

Commit

Permalink
ethereum, ethclient: add blob transaction fields in CallMsg (ethereum…
Browse files Browse the repository at this point in the history
…#28989)

Co-authored-by: Felix Lange <fjl@twurst.com>
  • Loading branch information
2 people authored and 0xmountaintop committed Jul 3, 2024
1 parent 6170bfe commit 8bd49ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,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
}

Expand Down
4 changes: 4 additions & 0 deletions interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ type CallMsg struct {

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

// For BlobTxType
BlobGasFeeCap *big.Int
BlobHashes []common.Hash

// scroll-related:
// not need to have a `IsL1MessageTx` field, should always be false
}
Expand Down

0 comments on commit 8bd49ab

Please sign in to comment.