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
1 changed files with 3 additions and 3 deletions

View File

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