From 25e95c1002c254c46c618222d2217a1efb13ae68 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Wed, 16 May 2018 20:24:08 -0300 Subject: [PATCH] add EmbarkSpec.getAccounts(cb) --- lib/tests/test.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index 772d8f64b..20317c166 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;