mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-07-23 07:10:57 -04:00
deploy script
This commit is contained in:
parent
a359e86f85
commit
8580c5e427
4 changed files with 33 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue