don't track contract if there was an error deploying it
This commit is contained in:
parent
0252177a79
commit
4260122238
|
@ -110,13 +110,12 @@ Deploy.prototype.deploy_contracts = function(env) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("deployed " + className + " at " + contractAddress);
|
console.log("deployed " + className + " at " + contractAddress);
|
||||||
|
this.chainManager.addContract(className, contract.compiled.code, realArgs, contractAddress);
|
||||||
|
this.chainManager.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.deployedContracts[className] = contractAddress;
|
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);
|
this.execute_cmds(contract.onDeploy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue