mirror of https://github.com/embarklabs/embark.git
get blockchain object from event bus
This commit is contained in:
parent
591dbf259f
commit
ad994ec393
|
@ -24,6 +24,10 @@ class BlockchainConnector {
|
|||
|
||||
this.registerProcessLaunch();
|
||||
|
||||
self.events.setCommandHandler("blockchain:object", (cb) => {
|
||||
cb(self);
|
||||
});
|
||||
|
||||
if (!this.web3) {
|
||||
this.initWeb3();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue