Merge pull request #196 from decentbet/tests-fix
Setting web3 on Embark Test constructor
This commit is contained in:
commit
6bcfa7e1f0
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue