don't track contract if there was an error deploying it

This commit is contained in:
Iuri Matias 2015-08-08 11:53:57 -04:00
parent 0252177a79
commit 4260122238
1 changed files with 2 additions and 3 deletions

View File

@ -110,13 +110,12 @@ Deploy.prototype.deploy_contracts = function(env) {
}
else {
console.log("deployed " + className + " at " + contractAddress);
this.chainManager.addContract(className, contract.compiled.code, realArgs, contractAddress);
this.chainManager.save();
}
this.deployedContracts[className] = contractAddress;
this.chainManager.addContract(className, contract.compiled.code, realArgs, contractAddress);
this.chainManager.save();
console.log("deployed " + className + " at " + contractAddress);
this.execute_cmds(contract.onDeploy);
}
}