Merge pull request #40 from linagee/patch-3

Keep looping if address is null
This commit is contained in:
Iuri Matias 2015-07-29 07:46:18 -04:00
commit 2bd14e5c6c
1 changed files with 1 additions and 1 deletions

View File

@ -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;