Merge pull request #10 from DryginAlexander/master

fix Merkle tree capacity
This commit is contained in:
Pertsev Alexey 2019-09-10 17:00:02 +03:00 committed by GitHub
commit 7ed13aa8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 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
}