mirror of
https://github.com/tornadocash/fixed-merkle-tree.git
synced 2025-01-04 02:45:21 +01:00
Minor fix
This commit is contained in:
parent
727be9d333
commit
8ce9847652
@ -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
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user