mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-13 15:34:26 +00:00
Merge pull request #442 from 3esmit/patch-2
make getAccounts a simple web3..eth.getAccounts wrapper.
This commit is contained in:
commit
2271643015
@ -52,10 +52,7 @@ var Test = function(options) {
|
||||
|
||||
Test.prototype.getAccounts = function(cb) {
|
||||
this.web3.eth.getAccounts(function(err, accounts) {
|
||||
if (err) {
|
||||
throw new Error(err);
|
||||
}
|
||||
cb(accounts);
|
||||
cb(err, accounts);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user