mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Merge pull request #850 from embark-framework/bug_fix/re-add-dev_funds-calling-code
Adding back calling code block for dev_funds
This commit is contained in:
commit
cc8649aa95
@ -180,6 +180,12 @@ Blockchain.prototype.run = function() {
|
||||
self.child.stderr.on('data', (data) => {
|
||||
data = data.toString();
|
||||
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
||||
if (self.isDev) {
|
||||
self.createFundAndUnlockAccounts((err) => {
|
||||
// TODO: this is never called!
|
||||
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
||||
});
|
||||
}
|
||||
self.readyCalled = true;
|
||||
self.readyCallback();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user