mirror of https://github.com/embarklabs/embark.git
Merge pull request #64 from ryepdx/expose-web3
Allow users to interact with Embark's web3 instance directly
This commit is contained in:
commit
5865daf818
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue