Skip to content

Commit

Permalink
fix: update isInvalidItx func
Browse files Browse the repository at this point in the history
  • Loading branch information
Monika-Bitfly committed Feb 11, 2025
1 parent c901a22 commit c106771
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/pkg/executionlayer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,10 @@ func isBlobTx(txType uint32) bool {
}

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

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

0 comments on commit c106771

Please sign in to comment.