mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
make getAccounts a simple web3 wrapper.
Maybe could even be like Test.prototype.getAccounts = web3.eth.getAccounts; ?
This commit is contained in:
parent
0ff5930427
commit
56b20becfb
@ -52,10 +52,7 @@ var Test = function(options) {
|
|||||||
|
|
||||||
Test.prototype.getAccounts = function(cb) {
|
Test.prototype.getAccounts = function(cb) {
|
||||||
this.web3.eth.getAccounts(function(err, accounts) {
|
this.web3.eth.getAccounts(function(err, accounts) {
|
||||||
if (err) {
|
cb(err, accounts);
|
||||||
throw new Error(err);
|
|
||||||
}
|
|
||||||
cb(accounts);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user