From ad994ec393a638615f4fbee5203f0c010fbe77e8 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 27 Jul 2018 16:03:15 -0400 Subject: [PATCH] get blockchain object from event bus --- lib/contracts/blockchain.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/contracts/blockchain.js b/lib/contracts/blockchain.js index 5e24c9aad..c927101ba 100644 --- a/lib/contracts/blockchain.js +++ b/lib/contracts/blockchain.js @@ -24,6 +24,10 @@ class BlockchainConnector { this.registerProcessLaunch(); + self.events.setCommandHandler("blockchain:object", (cb) => { + cb(self); + }); + if (!this.web3) { this.initWeb3(); } else {