instantiate web3 object

This commit is contained in:
Iuri Matias 2016-02-08 21:50:01 -05:00
parent 84191a241c
commit 0c6ced4dc9
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
var readYaml = require('read-yaml'); var readYaml = require('read-yaml');
var shelljs = require('shelljs'); var shelljs = require('shelljs');
var shelljs_global = require('shelljs/global'); var shelljs_global = require('shelljs/global');
var web3 = require('web3'); var Web3 = require('web3');
var commander = require('commander'); var commander = require('commander');
var wrench = require('wrench'); var wrench = require('wrench');
var grunt = require('grunt'); var grunt = require('grunt');
@ -24,7 +24,7 @@ Embark = {
this.web3 = _web3; this.web3 = _web3;
} }
else { else {
this.web3 = web3; this.web3 = new Web3();
} }
this.chainManager = (new ChainManager()); this.chainManager = (new ChainManager());
}, },