浏览代码

Merge pull request #18269 from Quasilyte/patch-1

light: fix duplicated argument in bytes.Equal call
Péter Szilágyi 7 年之前
父节点
当前提交
2fdff33803
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      light/trie_test.go

+ 1 - 1
light/trie_test.go

@@ -64,7 +64,7 @@ func diffTries(t1, t2 state.Trie) error {
 			spew.Dump(i2)
 			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)
 		}
 	}