From ed1ac3af2ec753635a2ab452d15b4adfa6acdfce Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 18 Jun 2018 14:33:25 -0400 Subject: [PATCH] register web3 after init --- lib/contracts/blockchain.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/contracts/blockchain.js b/lib/contracts/blockchain.js index 1b2fdadcf..bd39b01eb 100644 --- a/lib/contracts/blockchain.js +++ b/lib/contracts/blockchain.js @@ -90,7 +90,10 @@ class Blockchain { function fundAccountsIfNeeded(next) { provider.fundAccounts(next); } - ], cb); + ], (err) => { + self.registerWeb3Object(); + cb(err); + }); } onReady(callback) {