mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
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...');
|
console.log('trying to obtain ' + className + ' address...');
|
||||||
var receipt = null;
|
var receipt = null;
|
||||||
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null) {
|
while ((receipt = web3.eth.getTransactionReceipt(transactionHash)) === null || receipt.contractAddress === null) {
|
||||||
sleep.sleep(1);
|
sleep.sleep(1);
|
||||||
}
|
}
|
||||||
var contractAddress = receipt.contractAddress;
|
var contractAddress = receipt.contractAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user