show first 5 addresses with balance

This commit is contained in:
Javier 2016-11-15 17:40:44 -03:00
commit b676c5e37e
3 changed files with 31 additions and 13 deletions

View file

@ -784,6 +784,13 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
});
};
root.getBalance = function(wallet, opts, cb) {
opts = opts || {};
wallet.getBalance(opts, function(err, resp) {
return cb(err, resp);
});
};
root.getAddress = function(wallet, forceNew, cb) {
storageService.getLastAddress(wallet.id, function(err, addr) {
if (err) return cb(err);