fix tests

This commit is contained in:
Alexey 2021-03-04 13:18:01 +03:00
parent aa16e436cd
commit 435f30900b

View File

@ -138,12 +138,13 @@ contract('Miner', (accounts) => {
toFixedHex(emptyTree.root()), toFixedHex(emptyTree.root()),
) )
tornadoTrees = await TornadoTrees.new(operator, operator, tornadoTreesV1.address, verifier, { tornadoTrees = await TornadoTrees.new(operator, tornadoTreesV1.address, {
unprocessedDeposits: 0, depositsFrom: 0,
unprocessedWithdrawals: 0, depositsStep: 0,
depositsPerDay: 0, withdrawalsFrom: 0,
withdrawalsPerDay: 0, withdrawalsStep: 0,
}) })
await tornadoTrees.initialize(operator, verifier)
const swapExpectedAddr = await getNextAddr(accounts[0], 1) const swapExpectedAddr = await getNextAddr(accounts[0], 1)
const minerExpectedAddr = await getNextAddr(accounts[0], 2) const minerExpectedAddr = await getNextAddr(accounts[0], 2)
torn = await Torn.new(sender, thirtyDays, [ torn = await Torn.new(sender, thirtyDays, [