diff --git a/lib/deploy.js b/lib/deploy.js index 6bdf1f64..d00b0c7b 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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); } }