tornado-nova/migrations/2_deploy_pool.js

12 lines
405 B
JavaScript
Raw Normal View History

2020-04-09 11:04:06 +02:00
/* 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)
})
}