From 274524e456eb7d22d9c7539394448d87ea848ce8 Mon Sep 17 00:00:00 2001 From: Ryan Casey Date: Fri, 21 Aug 2015 12:34:02 -0700 Subject: [PATCH] Sometimes it's nice to get beneath the framework and work with web3 directly. --- lib/chain_manager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/chain_manager.js b/lib/chain_manager.js index d63c8b850..edc48bbde 100644 --- a/lib/chain_manager.js +++ b/lib/chain_manager.js @@ -6,6 +6,7 @@ ChainManager = function() { this.chainManagerConfig = {}; this.currentChain = {}; this.file = ""; + this.web3 = null; } ChainManager.prototype.loadConfigFile = function(filename) { @@ -34,6 +35,7 @@ ChainManager.prototype.init = function(env, config) { } this.currentChain = this.chainManagerConfig[chainId]; + this.web3 = web3; } ChainManager.prototype.addContract = function(contractName, code, args, address) {