get blockchain object from event bus

This commit is contained in:
Iuri Matias 2018-07-27 16:03:15 -04:00 committed by Pascal Precht
parent 591dbf259f
commit ad994ec393
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 4 additions and 0 deletions

View File

@ -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 {