Skip to content

Commit

Permalink
eth/filters: make filterLogs func more readable (#16920)
Browse files Browse the repository at this point in the history
  • Loading branch information
knarfeh authored and karalabe committed Jun 14, 2018
1 parent 947e0af commit e75d0a6
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 @@ -258,9 +258,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 e75d0a6

Please sign in to comment.