Skip to content

Commit

Permalink
capture fields and path correctly on export
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Mar 28, 2024
1 parent b0699c1 commit d5677da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions codec/block-ethereum.avsc
Original file line number Diff line number Diff line change
Expand Up @@ -577,13 +577,13 @@
"default":"null"
},
{
"name":"blobTxSidecar",
"name":"BlobTxSidecar",
"type":[
"null",
{
"type":"array",
"items":{
"name":"blobTxSidecar_record",
"name":"BlobTxSidecar_record",
"type":"record",
"fields":[
{
Expand Down
6 changes: 3 additions & 3 deletions internal/utils/lenspath.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
var dataLens = createLenspath([]string{"replicaEvent", "*", "data"})
var withdrawalsLens = composeLenspath(dataLens, []string{"Withdrawals"})
var uncleLens = composeLenspath(dataLens, []string{"Uncles"})
var blobTxSidecarLens = composeLenspath(dataLens, []string{"BlobTxSidecar"})

// transactions
var transactionsLens = composeLenspath(dataLens, []string{"Transactions", "*"})
Expand All @@ -19,13 +20,12 @@ var sLens = composeLenspath(transactionsLens, []string{"s"})
var toLens = composeLenspath(transactionsLens, []string{"to"})
var fromLens = composeLenspath(transactionsLens, []string{"from"})

// blob tx
var blobTxSidecarLens = composeLenspath(transactionsLens, []string{"blobTxSidecar"})
// blob data
var blobsLens = composeLenspath(blobTxSidecarLens, []string{"Blobs"})
var commitmentsLens = composeLenspath(blobTxSidecarLens, []string{"Commitments"})
var proofsLens = composeLenspath(blobTxSidecarLens, []string{"Proofs"})

// blob header
// blob tx fields
var blobFeeCapLens = composeLenspath(transactionsLens, []string{"blobFeeCap"})
var blobHashesLens = composeLenspath(transactionsLens, []string{"blobHashes"})
var blobGasLens = composeLenspath(transactionsLens, []string{"blobGas"})
Expand Down

0 comments on commit d5677da

Please sign in to comment.