max leaves count fix

This commit is contained in:
Alexey 2019-09-16 13:07:14 +03:00
parent a64f41a44e
commit 9132aeb6d5
3 changed files with 5 additions and 5 deletions

View file

@ -180,7 +180,7 @@ contract('MerkleTreeWithHistory', accounts => {
zeroValue = 1337
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
for (let i = 0; i < 2**(levels - 1); i++) {
for (let i = 0; i < 2**levels; i++) {
await merkleTreeWithHistory.insert(i+42).should.be.fulfilled
}