mirror of
https://github.com/embarklabs/embark.git
synced 2025-03-01 13:50:43 +00:00
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) {
|
Test.prototype.deployAll = function(contractsConfig, cb) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user