mirror of https://github.com/embarklabs/embark.git
add EmbarkSpec.getAccounts(cb)
This commit is contained in:
parent
bfcf72b09a
commit
25e95c1002
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue