if contract already deployed record it and generate api; also re-run ondeploy

This commit is contained in:
Iuri Matias 2015-08-05 10:01:44 -04:00
parent 1ff7d4bba3
commit efdf24c49b
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ Deploy.prototype.deploy_contracts = function(env) {
if (chainContract != undefined) { if (chainContract != undefined) {
console.log("contract " + className + " is unchanged and already deployed at " + chainContract.address); console.log("contract " + className + " is unchanged and already deployed at " + chainContract.address);
this.deployedContracts[className] = contractAddress;
this.execute_cmds(contract.onDeploy);
} }
else { else {