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