Browse Source

Deploy mock contracts only for test

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

+ 4 - 2
migrations/2_deploy_contracts.js

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