Sometimes it's nice to get beneath the framework and work with web3 directly.
This commit is contained in:
parent
14f98c0020
commit
274524e456
|
@ -6,6 +6,7 @@ ChainManager = function() {
|
||||||
this.chainManagerConfig = {};
|
this.chainManagerConfig = {};
|
||||||
this.currentChain = {};
|
this.currentChain = {};
|
||||||
this.file = "";
|
this.file = "";
|
||||||
|
this.web3 = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChainManager.prototype.loadConfigFile = function(filename) {
|
ChainManager.prototype.loadConfigFile = function(filename) {
|
||||||
|
@ -34,6 +35,7 @@ ChainManager.prototype.init = function(env, config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentChain = this.chainManagerConfig[chainId];
|
this.currentChain = this.chainManagerConfig[chainId];
|
||||||
|
this.web3 = web3;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChainManager.prototype.addContract = function(contractName, code, args, address) {
|
ChainManager.prototype.addContract = function(contractName, code, args, address) {
|
||||||
|
|
Loading…
Reference in New Issue