mirror of https://github.com/embarklabs/embark.git
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();
|
||||
if (self.onReadyCallback && !self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
||||
if (self.isDev) {
|
||||
return self.createFundAndUnlockAccounts((err) => {
|
||||
self.createFundAndUnlockAccounts((err) => {
|
||||
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
||||
self.readyCalled = true;
|
||||
self.onReadyCallback();
|
||||
//self.readyCalled = true;
|
||||
//self.onReadyCallback();
|
||||
});
|
||||
}
|
||||
self.readyCalled = true;
|
||||
|
|
|
@ -92,6 +92,7 @@ class Blockchain {
|
|||
},
|
||||
function fundAccountsIfNeeded(next) {
|
||||
console.dir('[blockchain/contracts]: funding accounts');
|
||||
self.isWeb3Ready = true;
|
||||
provider.fundAccounts(next);
|
||||
}
|
||||
], (err) => {
|
||||
|
|
Loading…
Reference in New Issue