deploy script

This commit is contained in:
poma 2021-02-11 10:29:50 +03:00
parent a359e86f85
commit 8580c5e427
No known key found for this signature in database
GPG key ID: BA20CB01FE165657
4 changed files with 33 additions and 2 deletions

View file

@ -4,7 +4,7 @@ const ETHTornado = artifacts.require('ETHTornado')
const Verifier = artifacts.require('Verifier')
const Hasher = artifacts.require('Hasher')
module.exports = function (deployer, network, accounts) {
module.exports = function (deployer) {
return deployer.then(async () => {
const { MERKLE_TREE_HEIGHT, ETH_AMOUNT } = process.env
const verifier = await Verifier.deployed()

View file

@ -5,7 +5,7 @@ const Verifier = artifacts.require('Verifier')
const Hasher = artifacts.require('Hasher')
const ERC20Mock = artifacts.require('ERC20Mock')
module.exports = function (deployer, network, accounts) {
module.exports = function (deployer) {
return deployer.then(async () => {
const { MERKLE_TREE_HEIGHT, ERC20_TOKEN, TOKEN_AMOUNT } = process.env
const verifier = await Verifier.deployed()