mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-15 16:57:10 +00:00
get blockchain object from event bus
This commit is contained in:
parent
6c662c02c6
commit
0ffc767f92
@ -24,6 +24,10 @@ class BlockchainConnector {
|
|||||||
cb(self.isWeb3Ready);
|
cb(self.isWeb3Ready);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
self.events.setCommandHandler("blockchain:object", (cb) => {
|
||||||
|
cb(self);
|
||||||
|
});
|
||||||
|
|
||||||
if (!this.web3) {
|
if (!this.web3) {
|
||||||
this.initWeb3();
|
this.initWeb3();
|
||||||
} else {
|
} else {
|
||||||
|
@ -218,7 +218,7 @@ class Engine {
|
|||||||
this.registerModule('blockchain_connector', {
|
this.registerModule('blockchain_connector', {
|
||||||
isDev: this.isDev,
|
isDev: this.isDev,
|
||||||
web3: options.web3
|
web3: options.web3
|
||||||
});
|
})); /*eslint no-new: "off"*/
|
||||||
|
|
||||||
this.registerModule('whisper');
|
this.registerModule('whisper');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user