tornado-nova/migrations/2_deploy_pool.js
2020-04-09 12:04:06 +03:00

12 lines
405 B
JavaScript

/* global artifacts */
const Verifier = artifacts.require('Verifier')
const TornadoPool = artifacts.require('TornadoPool')
module.exports = function(deployer, network, accounts) {
return deployer.then(async () => {
const verifier = await Verifier.deployed()
const tornado = await deployer.deploy(TornadoPool, verifier.address)
console.log('TornadoPool\'s address ', tornado.address)
})
}