mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-13 07:36:21 +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);
|
||||
});
|
||||
|
||||
self.events.setCommandHandler("blockchain:object", (cb) => {
|
||||
cb(self);
|
||||
});
|
||||
|
||||
if (!this.web3) {
|
||||
this.initWeb3();
|
||||
} else {
|
||||
|
@ -218,7 +218,7 @@ class Engine {
|
||||
this.registerModule('blockchain_connector', {
|
||||
isDev: this.isDev,
|
||||
web3: options.web3
|
||||
});
|
||||
})); /*eslint no-new: "off"*/
|
||||
|
||||
this.registerModule('whisper');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user