Skip to content

Commit

Permalink
fix: fix isInvalidItx func
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-Bitfly committed Feb 11, 2025
1 parent e298b64 commit c901a22
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 @@ -179,7 +179,7 @@ func TransformBlock(chainID string, block *types.Eth1Block, res *IndexedBlock) e
txReward.Add(txReward, txFee)

for _, itx := range t.Itx {
if isValidItx(itx) { // skip top level call & empty calls
if !isValidItx(itx) { // skip top level call & empty calls
continue
}
idx.InternalTransactionCount++
Expand Down Expand Up @@ -639,7 +639,7 @@ func isBlobTx(txType uint32) bool {
}

func isValidItx(itx *types.Eth1InternalTransaction) bool {
return itx.Path == "0" || itx.Path == "[]" || bytes.Equal(itx.Value, []byte{0x0})
return itx.Path != "0" || itx.Path != "[]" || !bytes.Equal(itx.Value, []byte{0x0})
}

func getLogTopics(log *types.Eth1Log) []common.Hash {
Expand Down

0 comments on commit c901a22

Please sign in to comment.