Merge pull request #196 from decentbet/tests-fix

Setting web3 on Embark Test constructor
This commit is contained in:
Iuri Matias 2016-11-08 06:32:38 -05:00 committed by GitHub
commit 6bcfa7e1f0
1 changed files with 3 additions and 2 deletions

View File

@ -19,12 +19,13 @@ var Test = function(options) {
console.log('For more information see https://github.com/ethereumjs/testrpc');
exit();
}
this.web3 = new Web3();
this.web3.setProvider(this.sim.provider());
};
Test.prototype.deployAll = function(contractsConfig, cb) {
var self = this;
this.web3 = new Web3();
this.web3.setProvider(this.sim.provider());
var logger = new TestLogger({logLevel: 'debug'});
async.waterfall([