From 554662b3d745ce6785da60d78cab5c16f17b606e Mon Sep 17 00:00:00 2001 From: Delweng Date: Tue, 13 Jun 2023 20:42:39 +0800 Subject: [PATCH] eth/filters: go lint Signed-off-by: jsvisa Signed-off-by: jsvisa --- eth/filters/filter_system_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index f5b4f2565b..55c4537e36 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -840,7 +840,7 @@ func TestLogsSubscription(t *testing.T) { for l := range fetched { have, want := fetched[l], tt.expected[l] - if have.Address != contract || len(have.Topics) != len(want.Topics) || have.Topics[2] != want.Topics[2] || bytes.Compare(have.Data, want.Data) != 0 || have.BlockNumber != want.BlockNumber { + if have.Address != contract || len(have.Topics) != len(want.Topics) || !bytes.Equal(have.Topics[2].Bytes(), want.Topics[2].Bytes()) || !bytes.Equal(have.Data, want.Data) || have.BlockNumber != want.BlockNumber { tt.err <- fmt.Errorf("invalid log on index %d for case %d have: %+v want: %+v\n", l, i, have, want) return }