mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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;
|
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;
|
this.deployedContracts[className] = contractAddress;
|
||||||
|
|
||||||
console.log("deployed " + className + " at " + contractAddress);
|
console.log("deployed " + className + " at " + contractAddress);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user