Skip to content

Commit

Permalink
eth/filters: make filterLogs func more readable (ethereum#16920)
Browse files Browse the repository at this point in the history
  • Loading branch information
knarfeh authored and gzliudan committed Mar 18, 2024
1 parent 7197172 commit 19b84ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eth/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ Logs:
if len(topics) > len(log.Topics) {
continue Logs
}
for i, topics := range topics {
match := len(topics) == 0 // empty rule set == wildcard
for _, topic := range topics {
for i, sub := range topics {
match := len(sub) == 0 // empty rule set == wildcard
for _, topic := range sub {
if log.Topics[i] == topic {
match = true
break
Expand Down

0 comments on commit 19b84ff

Please sign in to comment.