From 830be0e5966f74b59ca47e0d0c8bff65bdc9c564 Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Tue, 24 Dec 2024 15:59:06 +0100 Subject: [PATCH] fix: :bug: TokensListHiveDatasource is not cleared when logout --- lib/application/session/providers.dart | 1 + lib/application/session/session.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/application/session/providers.dart b/lib/application/session/providers.dart index 6b0c93a28..e13577c46 100644 --- a/lib/application/session/providers.dart +++ b/lib/application/session/providers.dart @@ -91,6 +91,7 @@ class SessionNotifier extends _$SessionNotifier with KeychainServiceMixin { await ref.read(SettingsProviders.settings.notifier).reset(); await AuthenticationProviders.reset(ref); await KeychainInfoVaultDatasource.clear(); + await TokensListHiveDatasource.clear(); await _appWalletDatasource.clearAppWallet(); await CacheManagerHive.clear(); await Vault.instance().clearSecureKey(); diff --git a/lib/application/session/session.dart b/lib/application/session/session.dart index 15ce44916..f6cbde0a1 100644 --- a/lib/application/session/session.dart +++ b/lib/application/session/session.dart @@ -11,6 +11,7 @@ import 'package:aewallet/domain/models/core/failures.dart'; import 'package:aewallet/domain/models/core/result.dart'; import 'package:aewallet/infrastructure/datasources/appwallet.hive.dart'; import 'package:aewallet/infrastructure/datasources/keychain_info.vault.dart'; +import 'package:aewallet/infrastructure/datasources/tokens_list.hive.dart'; import 'package:aewallet/infrastructure/datasources/vault/vault.dart'; import 'package:aewallet/model/data/hive_app_wallet_dto.dart'; import 'package:aewallet/util/cache_manager_hive.dart';