warn user if there was issues deploying a contract

This commit is contained in:
Iuri Matias 2015-08-01 19:34:26 -04:00
parent 3a1828f1f6
commit 90a1f8cd65
1 changed files with 11 additions and 0 deletions

View File

@ -90,6 +90,17 @@ Deploy.prototype.deploy_contracts = function(env) {
}
var contractAddress = receipt.contractAddress;
if (web3.eth.getCode(contractAddress) === "0x") {
console.log("=========");
console.log("contract was deployed at " + contractAddress + " but doesn't seem to be working");
console.log("try adjusting your gas values");
console.log("=========");
}
else {
console.log("deployed " + className + " at " + contractAddress);
}
this.deployedContracts[className] = contractAddress;
console.log("deployed " + className + " at " + contractAddress);