Skip to content

Commit

Permalink
fix(@embark/ganache): make embark blockchain exit when using Ganache
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and iurimatias committed Mar 10, 2020
1 parent c624582 commit 53dc751
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/plugins/ganache/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Ganache {
this._registerStatusCheck();
this._getProvider(); // No need to return anything, we just want to populate currentProvider
this.embark.logger.info(__('Blockchain node is ready').cyan);
cb();
cb(null, true);
},
stopFn: (cb) => {
this.currentProvider = null;
Expand Down
4 changes: 2 additions & 2 deletions packages/stack/blockchain/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ export default class Blockchain {
return cb(null, true);
}
// start node
client.launchFn.call(client, () => {
client.launchFn.call(client, (_err, isVM) => {
started();
cb();
cb(null, isVM);
});
});
});
Expand Down
1 change: 0 additions & 1 deletion packages/stack/proxy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export default class ProxyManager {

// HTTP
this.httpProxy = await new Proxy({
endpoint,
events: this.events,
isWs: false,
logger: this.logger,
Expand Down

0 comments on commit 53dc751

Please sign in to comment.