Skip to content

Commit

Permalink
Bugfix: includes() should use address.Equal instead of equals operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jdowning100 committed Jun 20, 2023
1 parent 8193e30 commit fd5cdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ func (f *Filter) checkMatches(ctx context.Context, header *types.Header) (logs [

func includes(addresses []common.Address, a common.Address) bool {
for _, addr := range addresses {
if addr == a {
if addr.Equal(a) {
return true
}
}
Expand Down

0 comments on commit fd5cdb4

Please sign in to comment.