fix tests

This commit is contained in:
Alexey 2021-02-17 18:10:25 +03:00
parent 9fdafd2765
commit fe2912fc33
2 changed files with 12 additions and 13 deletions

@ -24,10 +24,10 @@ describe('findArrayLength', () => {
publicArray.address, publicArray.address,
publicArray.address, publicArray.address,
{ {
unprocessedDeposits: 3, depositsFrom: 3,
unprocessedWithdrawals: 3, depositsStep: 3,
depositsPerDay: 2, withdrawalsFrom: 2,
withdrawalsPerDay: 2, withdrawalsStep: 2,
}, },
) )
}) })

@ -49,7 +49,6 @@ describe('TornadoTrees', function () {
const TornadoTreesV1 = await ethers.getContractFactory('TornadoTreesV1Mock') const TornadoTreesV1 = await ethers.getContractFactory('TornadoTreesV1Mock')
tornadoTreesV1 = await TornadoTreesV1.deploy(0, 0, tree.root(), tree.root()) tornadoTreesV1 = await TornadoTreesV1.deploy(0, 0, tree.root(), tree.root())
notes = [] notes = []
for (let i = 0; i < 2 ** CHUNK_TREE_HEIGHT; i++) { for (let i = 0; i < 2 ** CHUNK_TREE_HEIGHT; i++) {
notes[i] = { notes[i] = {
@ -78,10 +77,10 @@ describe('TornadoTrees', function () {
tornadoTreesV1.address, tornadoTreesV1.address,
verifier.address, verifier.address,
{ {
unprocessedDeposits: 1, depositsFrom: 1,
unprocessedWithdrawals: 1, depositsStep: 1,
depositsPerDay: 2, withdrawalsFrom: 2,
withdrawalsPerDay: 2, withdrawalsStep: 2,
}, },
) )
depositDataEventFilter = tornadoTrees.filters.DepositData() depositDataEventFilter = tornadoTrees.filters.DepositData()
@ -166,10 +165,10 @@ describe('TornadoTrees', function () {
tornadoTreesV1.address, tornadoTreesV1.address,
verifier.address, verifier.address,
{ {
unprocessedDeposits: 1, depositsFrom: 1,
unprocessedWithdrawals: 1, depositsStep: 1,
depositsPerDay: 2, withdrawalsFrom: 2,
withdrawalsPerDay: 2, withdrawalsStep: 2,
}, },
) )