fix: clear balance stream cache in deleteDatabase() and reset()

This commit is contained in:
Forte11Cuba
2026-04-03 15:25:11 -06:00
parent c69de2b41b
commit b56aa5ce62
+4
View File
@@ -1793,6 +1793,8 @@ class WalletProvider extends ChangeNotifier {
_activeUnit = 'sat';
_mnemonic = null;
_db = null;
_cachedBalanceStream = null;
_cachedBalanceKey = null;
// Limpiar metadata de transacciones
await _txMetaStorage.clear();
@@ -1821,6 +1823,8 @@ class WalletProvider extends ChangeNotifier {
_activeUnit = 'sat';
_mnemonic = null;
_db = null;
_cachedBalanceStream = null;
_cachedBalanceKey = null;
notifyListeners();
}