diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 3820bdf..40ed9d0 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -1,5 +1,7 @@ var StandardBounty = artifacts.require("../contacts/StandardBounty.sol"); +var StandardBountyFactory = artifacts.require("../contracts/StandardBountiesFactory.sol"); -module.exports = function(deployer) { - deployer.deploy(StandardBounty); +module.exports = async function(deployer) { + const address = await deployer.deploy(StandardBounty); + deployer.deploy(StandardBountyFactory(address)) };