mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
initialize proxy during deploy
This commit is contained in:
parent
76cf0e9502
commit
4539719da3
@ -50,18 +50,20 @@ describe('TornadoPool', function () {
|
|||||||
l1ChainId,
|
l1ChainId,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const { data } = await tornadoPoolImpl.populateTransaction.initialize(
|
||||||
|
MINIMUM_WITHDRAWAL_AMOUNT,
|
||||||
|
MAXIMUM_DEPOSIT_AMOUNT,
|
||||||
|
)
|
||||||
const proxy = await deploy(
|
const proxy = await deploy(
|
||||||
'CrossChainUpgradeableProxy',
|
'CrossChainUpgradeableProxy',
|
||||||
tornadoPoolImpl.address,
|
tornadoPoolImpl.address,
|
||||||
gov.address,
|
gov.address,
|
||||||
[],
|
data,
|
||||||
amb.address,
|
amb.address,
|
||||||
l1ChainId,
|
l1ChainId,
|
||||||
)
|
)
|
||||||
|
|
||||||
const TornadoPool = await ethers.getContractFactory('TornadoPool')
|
const tornadoPool = tornadoPoolImpl.attach(proxy.address)
|
||||||
const tornadoPool = TornadoPool.attach(proxy.address)
|
|
||||||
await tornadoPool.initialize(MINIMUM_WITHDRAWAL_AMOUNT, MAXIMUM_DEPOSIT_AMOUNT)
|
|
||||||
|
|
||||||
await token.approve(tornadoPool.address, utils.parseEther('10000'))
|
await token.approve(tornadoPool.address, utils.parseEther('10000'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user