Setting web3 on Embark Test constructor so it can be used before deploying contracts

This commit is contained in:
ed0wolf 2016-11-08 09:31:02 +00:00
parent 64f390e829
commit 668e0be0c3
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([