From 374dd420f527ea8e104f42a610dc1cc5cae508c4 Mon Sep 17 00:00:00 2001 From: Drygin Date: Wed, 4 Sep 2019 16:08:11 +0300 Subject: [PATCH] fix test of capacity of Merkle tree --- test/MerkleTreeWithHistory.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/MerkleTreeWithHistory.test.js b/test/MerkleTreeWithHistory.test.js index 5d0b2d8..2bcd505 100644 --- a/test/MerkleTreeWithHistory.test.js +++ b/test/MerkleTreeWithHistory.test.js @@ -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 }