Initialize web3 provider before deployAll
This makes possible to load accounts before deploying the contracts.
This commit is contained in:
parent
01ae387c74
commit
bfcf72b09a
|
@ -41,10 +41,6 @@ var Test = function(options) {
|
|||
});
|
||||
|
||||
this.web3 = new Web3();
|
||||
};
|
||||
|
||||
Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||
var self = this;
|
||||
|
||||
if (this.simOptions.node) {
|
||||
this.web3.setProvider(new this.web3.providers.HttpProvider(this.simOptions.node));
|
||||
|
@ -52,6 +48,10 @@ Test.prototype.deployAll = function(contractsConfig, cb) {
|
|||
this.sim = getSimulator();
|
||||
this.web3.setProvider(this.sim.provider(this.simOptions));
|
||||
}
|
||||
};
|
||||
|
||||
Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||
var self = this;
|
||||
|
||||
async.waterfall([
|
||||
function getConfig(callback) {
|
||||
|
|
Loading…
Reference in New Issue