add EmbarkSpec.getAccounts(cb)

This commit is contained in:
Ricardo Guilherme Schmidt 2018-05-16 20:24:08 -03:00
parent bfcf72b09a
commit 25e95c1002
1 changed files with 10 additions and 1 deletions

View File

@ -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) { Test.prototype.deployAll = function(contractsConfig, cb) {
var self = this; var self = this;
async.waterfall([ async.waterfall([
function getConfig(callback) { function getConfig(callback) {
let _versions_default = self.engine.config.contractsConfig.versions; let _versions_default = self.engine.config.contractsConfig.versions;