Skip to content

Commit c901a22

Browse files
committed
fix: fix isInvalidItx func
1 parent e298b64 commit c901a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/pkg/executionlayer/transformer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func TransformBlock(chainID string, block *types.Eth1Block, res *IndexedBlock) e
179179
txReward.Add(txReward, txFee)
180180

181181
for _, itx := range t.Itx {
182-
if isValidItx(itx) { // skip top level call & empty calls
182+
if !isValidItx(itx) { // skip top level call & empty calls
183183
continue
184184
}
185185
idx.InternalTransactionCount++
@@ -639,7 +639,7 @@ func isBlobTx(txType uint32) bool {
639639
}
640640

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

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

0 commit comments

Comments
 (0)