fix delete tx history
This commit is contained in:
parent
bca128a7ff
commit
bbb3acdca1
2 changed files with 24 additions and 2 deletions
|
|
@ -551,6 +551,21 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
root.clearTxHistory = function(wallet, cb) {
|
||||
root.invalidateCache(wallet);
|
||||
|
||||
storageService.removeTxHistory(wallet.id, function(err) {
|
||||
if (err) {
|
||||
$log.error(err);
|
||||
return cb();
|
||||
}
|
||||
return cb();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
root.getTxHistory = function(wallet, opts, cb) {
|
||||
opts = opts || {};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue