mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-13 23:35:46 +00:00
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');
|
||||
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…
x
Reference in New Issue
Block a user