Skip to content

Commit 28b6e90

Browse files
nujehfirmianavan
authored andcommitted
eth/filters: make filterLogs func more readable (ethereum#16920)
1 parent 6e1d30c commit 28b6e90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eth/filters/filter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ Logs:
258258
if len(topics) > len(log.Topics) {
259259
continue Logs
260260
}
261-
for i, topics := range topics {
262-
match := len(topics) == 0 // empty rule set == wildcard
263-
for _, topic := range topics {
261+
for i, sub := range topics {
262+
match := len(sub) == 0 // empty rule set == wildcard
263+
for _, topic := range sub {
264264
if log.Topics[i] == topic {
265265
match = true
266266
break

0 commit comments

Comments
 (0)