From 0affab28d6225d762877ddf3954fd9b50fbd60d3 Mon Sep 17 00:00:00 2001 From: William Villanueva Date: Wed, 5 Dec 2018 18:52:58 -0700 Subject: [PATCH] Fix migration script to work with proxy setup --- migrations/2_deploy_contracts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) };