From fd5cdb41d46993a691d4a77cda6a38b61f43a248 Mon Sep 17 00:00:00 2001 From: Jonathan Downing Date: Fri, 16 Jun 2023 13:35:41 -0500 Subject: [PATCH] Bugfix: includes() should use address.Equal instead of equals operator --- eth/filters/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter.go b/eth/filters/filter.go index d17654a8ee..b5f680df8b 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -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 } }