Minor fix

This commit is contained in:
Rodrigo Q. Saramago 2022-07-11 14:45:38 +02:00
parent 727be9d333
commit 8ce9847652
No known key found for this signature in database
GPG Key ID: 9B36B2525704A359

View File

@ -284,7 +284,7 @@ describe('MerkleTree', () => {
it('should verify a merkle-multiproof for a range of leaves', () => { it('should verify a merkle-multiproof for a range of leaves', () => {
const leaves = [...Array(16)].map((_, i) => i + 1) const leaves = [...Array(16)].map((_, i) => i + 1)
const tree = new MerkleTree(4, leaves) const tree = new MerkleTree(4, leaves)
const expectedProof: MultiProofPath = { const proof: MultiProofPath = {
pathElements: [ pathElements: [
10, 10,
13, 13,
@ -303,8 +303,8 @@ describe('MerkleTree', () => {
tree.levels, tree.levels,
defaultHash, defaultHash,
[3, 4, 9, 14], [3, 4, 9, 14],
expectedProof.pathElements, proof.pathElements,
expectedProof.leafIndices, proof.leafIndices,
), ),
).to.be.true ).to.be.true
}) })