mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
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…
x
Reference in New Issue
Block a user