Browse Source

Deploy mock contracts only for test

Makoto Inoue 9 years ago
parent
commit
8e7c7d54b1
1 changed files with 4 additions and 2 deletions
  1. 4 2
      migrations/2_deploy_contracts.js

+ 4 - 2
migrations/2_deploy_contracts.js

@@ -6,6 +6,8 @@ module.exports = function(deployer) {
   deployer.deploy(CrowdsaleTokenBounty);
   deployer.deploy(Ownable);
   deployer.deploy(LimitFunds);
-  deployer.deploy(SecureTargetMock);
-  deployer.deploy(InsecureTargetMock);
+  if(deployer.network == 'test'){
+    deployer.deploy(SecureTargetMock);
+    deployer.deploy(InsecureTargetMock);
+  };
 };