mirror of
https://github.com/tornadocash/tornado-trees.git
synced 2024-12-04 23:15:01 +01:00
fix tests
This commit is contained in:
parent
9fdafd2765
commit
fe2912fc33
@ -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,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user