Merge pull request #442 from 3esmit/patch-2

make getAccounts a simple web3..eth.getAccounts wrapper.
This commit is contained in:
Iuri Matias 2018-05-21 08:04:28 -04:00 committed by GitHub
commit 2271643015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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);
});
};