fix tests

This commit is contained in:
Drygin 2022-01-24 18:25:17 +03:00
parent bc2433be08
commit b615b9b756

View File

@ -92,17 +92,15 @@ describe('TornadoPool', function () {
})
it('should configure', async () => {
const { tornadoPool, amb } = await loadFixture(fixture)
const { tornadoPool, multisig } = await loadFixture(fixture)
const newWithdrawalLimit = utils.parseEther('0.01337')
const newDepositLimit = utils.parseEther('1337')
const { data } = await tornadoPool.populateTransaction.configureLimits(
await tornadoPool.connect(multisig).configureLimits(
newWithdrawalLimit,
newDepositLimit,
)
await amb.execute([{ who: tornadoPool.address, callData: data }])
expect(await tornadoPool.maximumDepositAmount()).to.be.equal(newDepositLimit)
expect(await tornadoPool.minimalWithdrawalAmount()).to.be.equal(newWithdrawalLimit)
})