From efdf24c49bf3868966441dc008c78b7a3c463f19 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 5 Aug 2015 10:01:44 -0400 Subject: [PATCH] if contract already deployed record it and generate api; also re-run ondeploy --- lib/deploy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/deploy.js b/lib/deploy.js index 81fcf08a4..d0be3c064 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -70,6 +70,8 @@ Deploy.prototype.deploy_contracts = function(env) { if (chainContract != undefined) { console.log("contract " + className + " is unchanged and already deployed at " + chainContract.address); + this.deployedContracts[className] = contractAddress; + this.execute_cmds(contract.onDeploy); } else {