Skip to content

Commit e75d0a6

Browse files
nujehkaralabe
authored andcommitted
eth/filters: make filterLogs func more readable (#16920)
1 parent 947e0af commit e75d0a6

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)