mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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) {
|
||||
var self = this;
|
||||
|
||||
|
||||
async.waterfall([
|
||||
function getConfig(callback) {
|
||||
let _versions_default = self.engine.config.contractsConfig.versions;
|
||||
|
Loading…
x
Reference in New Issue
Block a user