From 634a7bfe1edc5e168df46f1688c7d4c74a1ce569 Mon Sep 17 00:00:00 2001 From: linagee Date: Fri, 24 Jul 2015 18:06:02 -0600 Subject: [PATCH] Keep looping if address is null This made embark-framework work for me. (More often than not.) --- lib/deploy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/deploy.js b/lib/deploy.js index a4b3004433..41fac6def2 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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;