diff --git a/lib/server.js b/lib/server.js index f114052..7a8d1d9 100644 --- a/lib/server.js +++ b/lib/server.js @@ -289,11 +289,11 @@ WalletService.prototype.getMainAddresses = function(opts, cb) { self.storage.fetchAddresses(self.walletId, function(err, addresses) { if (err) return cb(err); - var mainAddresses = _.filter(addresses, { - isChange: false - }); - return cb(null, mainAddresses); + var onlyMain = _.reject(addresses, { + isChange: true + }); + return cb(null, onlyMain); }); };