Setting web3 on Embark Test constructor so it can be used before deploying contracts
This commit is contained in:
parent
64f390e829
commit
668e0be0c3
|
@ -19,12 +19,13 @@ var Test = function(options) {
|
||||||
console.log('For more information see https://github.com/ethereumjs/testrpc');
|
console.log('For more information see https://github.com/ethereumjs/testrpc');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.web3 = new Web3();
|
||||||
|
this.web3.setProvider(this.sim.provider());
|
||||||
};
|
};
|
||||||
|
|
||||||
Test.prototype.deployAll = function(contractsConfig, cb) {
|
Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.web3 = new Web3();
|
|
||||||
this.web3.setProvider(this.sim.provider());
|
|
||||||
var logger = new TestLogger({logLevel: 'debug'});
|
var logger = new TestLogger({logLevel: 'debug'});
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
|
Loading…
Reference in New Issue