Remove invalid parameters in MerkleProof tests (#2912)

pull/2924/head
Alex Beregszaszi 3 years ago committed by GitHub
parent d244b81972
commit 7006e4e3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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);
});

Loading…
Cancel
Save