Skip to content

Commit

Permalink
refactor: update isBlobTx func
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-Bitfly committed Feb 11, 2025
1 parent 552ecdf commit 65a2663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/pkg/executionlayer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TransformBlock(chainID string, block *types.Eth1Block, res *IndexedBlock) e
idx.InternalTransactionCount++
}

if t.GetType() == gethtypes.BlobTxType {
if isBlobTx(t.GetType()) {
idx.BlobTransactionCount++
}
}
Expand Down Expand Up @@ -635,7 +635,7 @@ func isValidERC1155Log(log *types.Eth1Log) bool {
}

func isBlobTx(txType uint32) bool {
return txType == 3
return txType == gethtypes.BlobTxType
}

func isValidItx(itx *types.Eth1InternalTransaction) bool {
Expand Down

0 comments on commit 65a2663

Please sign in to comment.