fix tests

This commit is contained in:
Alexey 2019-09-10 16:31:34 +03:00
parent 9009b9c56d
commit 010837f92b
4 changed files with 18 additions and 5 deletions

View file

@ -190,6 +190,15 @@ contract('MerkleTreeWithHistory', accounts => {
error = await merkleTreeWithHistory.insert(1).should.be.rejected
error.reason.should.be.equal('Merkle tree is full')
})
it.skip('mimc gas', async () => {
levels = 6
zeroValue = 1337
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
const gas = await merkleTreeWithHistory.hashLeftRight.estimateGas(zeroValue, zeroValue)
console.log('gas', gas - 21000)
})
})
afterEach(async () => {