|
@ -289,11 +289,11 @@ WalletService.prototype.getMainAddresses = function(opts, cb) { |
|
|
|
|
|
|
|
|
self.storage.fetchAddresses(self.walletId, function(err, addresses) { |
|
|
self.storage.fetchAddresses(self.walletId, function(err, addresses) { |
|
|
if (err) return cb(err); |
|
|
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); |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|