From 3764b43689c5455d17d6d2a5610ec04db4387bb9 Mon Sep 17 00:00:00 2001 From: Makoto Inoue Date: Fri, 28 Oct 2016 11:46:41 +0100 Subject: [PATCH] Update doc on migration step --- README.md | 5 +++-- migrations/2_deploy_contracts.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8767c3e14..618df8d40 100644 --- a/README.md +++ b/README.md @@ -65,8 +65,9 @@ At `migrations/2_deploy_contracts.js` ``` module.exports = function(deployer) { deployer.deploy(YourContract); - deployer.deploy(YourContractFactory); - deployer.deploy(Bounty); + deployer.deploy(YourContractFactory).then(function() { + return deployer.deploy(Bounty, YourContractFactory.address); + }); }; ``` diff --git a/migrations/2_deploy_contracts.js b/migrations/2_deploy_contracts.js index 889364cf6..ed1fb1122 100644 --- a/migrations/2_deploy_contracts.js +++ b/migrations/2_deploy_contracts.js @@ -2,9 +2,9 @@ module.exports = function(deployer) { deployer.deploy(PullPaymentBid); deployer.deploy(BadArrayUse); deployer.deploy(ProofOfExistence); - deployer.deploy(CrowdsaleTokenBounty); deployer.deploy(Ownable); deployer.deploy(LimitFunds); + if(deployer.network == 'test'){ deployer.deploy(SecureTargetFactory); deployer.deploy(InsecureTargetFactory);