Merge pull request #40 from linagee/patch-3
Keep looping if address is null
This commit is contained in:
commit
2bd14e5c6c
|
@ -71,7 +71,7 @@ Deploy.prototype.deploy_contracts = function(env) {
|
|||
|
||||
console.log('trying to obtain ' + className + ' address...');
|
||||
var receipt = null;
|
||||
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null) {
|
||||
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null || receipt.contractAddress === null) {
|
||||
sleep.sleep(1);
|
||||
}
|
||||
var contractAddress = receipt.contractAddress;
|
||||
|
|
Loading…
Reference in New Issue