Skip to content

Commit c106771

Browse files
committed
fix: update isInvalidItx func
1 parent c901a22 commit c106771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/pkg/executionlayer/transformer.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,10 @@ 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+
if itx.Path == "[]" || itx.Path == "0" || bytes.Equal(itx.Value, []byte{0x0}) {
643+
return false
644+
}
645+
return true
643646
}
644647

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

0 commit comments

Comments
 (0)