mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-05-08 01:05:09 -04:00
final test
This commit is contained in:
parent
1194e76b9a
commit
0db7be23b5
4 changed files with 27 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue