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();
|
this.registerProcessLaunch();
|
||||||
|
|
||||||
|
self.events.setCommandHandler("blockchain:object", (cb) => {
|
||||||
|
cb(self);
|
||||||
|
});
|
||||||
|
|
||||||
if (!this.web3) {
|
if (!this.web3) {
|
||||||
this.initWeb3();
|
this.initWeb3();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue