Unverified Commit 2fdff338 authored by Péter Szilágyi's avatar Péter Szilágyi Committed by GitHub

Merge pull request #18269 from Quasilyte/patch-1

light: fix duplicated argument in bytes.Equal call
parents af8daf91 da6e6e79
...@@ -64,7 +64,7 @@ func diffTries(t1, t2 state.Trie) error { ...@@ -64,7 +64,7 @@ func diffTries(t1, t2 state.Trie) error {
spew.Dump(i2) spew.Dump(i2)
return fmt.Errorf("tries have different keys %x, %x", i1.Key, i2.Key) return fmt.Errorf("tries have different keys %x, %x", i1.Key, i2.Key)
} }
if !bytes.Equal(i2.Value, i2.Value) { if !bytes.Equal(i1.Value, i2.Value) {
return fmt.Errorf("tries differ at key %x", i1.Key) return fmt.Errorf("tries differ at key %x", i1.Key)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment