mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-08 09:15:04 -04:00
fix leaf count
This commit is contained in:
parent
3f4e686899
commit
3404acef48
2 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ contract('MerkleTreeWithHistory', accounts => {
|
|||
zeroValue = 1337
|
||||
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
|
||||
|
||||
for (let i = 0; i < 2**levels; i++) {
|
||||
for (let i = 0; i < 2**(levels - 1); i++) {
|
||||
await merkleTreeWithHistory.insert(i+42).should.be.fulfilled
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue