소스 검색

Update doc on migration step

Makoto Inoue 9 년 전
부모
커밋
3764b43689
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      README.md
  2. 1 1
      migrations/2_deploy_contracts.js

+ 3 - 2
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);
+  });
 };
 ```
 

+ 1 - 1
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);