mirror of https://github.com/embarklabs/embark.git
warn user if there was issues deploying a contract
This commit is contained in:
parent
3a1828f1f6
commit
90a1f8cd65
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue