diff --git a/lib/tests/test.js b/lib/tests/test.js index 772d8f64..20317c16 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -50,9 +50,18 @@ var Test = function(options) { } }; +Test.prototype.getAccounts = function(cb) { + this.web3.eth.getAccounts(function(err, accounts) { + if (err) { + throw new Error(err); + } + cb(accounts); + }); +} + Test.prototype.deployAll = function(contractsConfig, cb) { var self = this; - + async.waterfall([ function getConfig(callback) { let _versions_default = self.engine.config.contractsConfig.versions;