mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
eth/filters: go lint
Signed-off-by: jsvisa <delweng@gmail.com> Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
8c429c95b3
commit
554662b3d7
1 changed files with 1 additions and 1 deletions
|
|
@ -840,7 +840,7 @@ func TestLogsSubscription(t *testing.T) {
|
||||||
|
|
||||||
for l := range fetched {
|
for l := range fetched {
|
||||||
have, want := fetched[l], tt.expected[l]
|
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)
|
tt.err <- fmt.Errorf("invalid log on index %d for case %d have: %+v want: %+v\n", l, i, have, want)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue