瀏覽代碼

Remove invalid parameters in MerkleProof tests (#2912)

Alex Beregszaszi 4 年之前
父節點
當前提交
7006e4e3e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/utils/cryptography/MerkleProof.test.js

+ 1 - 1
test/utils/cryptography/MerkleProof.test.js

@@ -37,7 +37,7 @@ contract('MerkleProof', function (accounts) {
       const badElements = ['d', 'e', 'f'];
       const badMerkleTree = new MerkleTree(badElements);
 
-      const badProof = badMerkleTree.getHexProof(badElements[0], keccak256, { hashLeaves: true, sortPairs: true });
+      const badProof = badMerkleTree.getHexProof(badElements[0]);
 
       expect(await this.merkleProof.verify(badProof, correctRoot, correctLeaf)).to.equal(false);
     });