mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
don't wait for account funds
This commit is contained in:
parent
231199c0dc
commit
91f1748d60
@ -164,10 +164,10 @@ Blockchain.prototype.run = function() {
|
|||||||
data = data.toString();
|
data = data.toString();
|
||||||
if (self.onReadyCallback && !self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
if (self.onReadyCallback && !self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
||||||
if (self.isDev) {
|
if (self.isDev) {
|
||||||
return self.createFundAndUnlockAccounts((err) => {
|
self.createFundAndUnlockAccounts((err) => {
|
||||||
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
||||||
self.readyCalled = true;
|
//self.readyCalled = true;
|
||||||
self.onReadyCallback();
|
//self.onReadyCallback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
self.readyCalled = true;
|
self.readyCalled = true;
|
||||||
|
@ -92,6 +92,7 @@ class Blockchain {
|
|||||||
},
|
},
|
||||||
function fundAccountsIfNeeded(next) {
|
function fundAccountsIfNeeded(next) {
|
||||||
console.dir('[blockchain/contracts]: funding accounts');
|
console.dir('[blockchain/contracts]: funding accounts');
|
||||||
|
self.isWeb3Ready = true;
|
||||||
provider.fundAccounts(next);
|
provider.fundAccounts(next);
|
||||||
}
|
}
|
||||||
], (err) => {
|
], (err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user