Skip to content

Commit 2bd14e5

Browse files
committed
Merge pull request #40 from linagee/patch-3
Keep looping if address is null
2 parents e72a2e1 + 634a7bf commit 2bd14e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Deploy.prototype.deploy_contracts = function(env) {
7171

7272
console.log('trying to obtain ' + className + ' address...');
7373
var receipt = null;
74-
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null) {
74+
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null || receipt.contractAddress === null) {
7575
sleep.sleep(1);
7676
}
7777
var contractAddress = receipt.contractAddress;

0 commit comments

Comments
 (0)