my commit

to 0.7

update constructor calls in tests

remove 0.5 from config
This commit is contained in:
mirru2532 2021-10-26 21:19:02 +02:00
parent 77af0c5bdd
commit 09423d692b
16 changed files with 15104 additions and 60 deletions

View file

@ -11,7 +11,7 @@ module.exports = function(deployer, network, accounts) {
const verifier = await Verifier.deployed()
const hasherInstance = await hasherContract.deployed()
await ETHTornado.link(hasherContract, hasherInstance.address)
const tornado = await deployer.deploy(ETHTornado, verifier.address, ETH_AMOUNT, MERKLE_TREE_HEIGHT, accounts[0])
const tornado = await deployer.deploy(ETHTornado, verifier.address, hasherInstance.address, ETH_AMOUNT, MERKLE_TREE_HEIGHT, accounts[0])
console.log('ETHTornado\'s address ', tornado.address)
})
}

View file

@ -20,6 +20,7 @@ module.exports = function(deployer, network, accounts) {
const tornado = await deployer.deploy(
ERC20Tornado,
verifier.address,
hasherInstance.address,
TOKEN_AMOUNT,
MERKLE_TREE_HEIGHT,
accounts[0],