final test

This commit is contained in:
Alexey 2019-07-13 00:50:26 +03:00
parent 1194e76b9a
commit 0db7be23b5
4 changed files with 27 additions and 7 deletions

View file

@ -43,7 +43,7 @@ contract('MerkleTreeWithHistory', async accounts => {
levels,
zeroValue,
)
miMC = MiMC.deployed()
miMC = await MiMC.deployed()
await MerkleTreeWithHistory.link(MiMC, miMC.address)
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
snapshotId = await takeSnapshot()
@ -181,6 +181,13 @@ contract('MerkleTreeWithHistory', async accounts => {
})
})
describe('#MIMC', async () => {
it.skip('gas price', async () => {
const gas = await merkleTreeWithHistory.hashLeftRight.estimateGas(1,2)
console.log('gas', gas)
})
})
afterEach(async () => {
await revertSnapshot(snapshotId.result)
snapshotId = await takeSnapshot()