fix(generic-fixes): Fixes to a couple of raised issues.

This change:
- Tentatively fixes the issue with the wallet groups bug, where some wallets are wrongly grouped.
This commit is contained in:
Blazebrain 2025-04-30 09:32:58 +01:00 committed by Czarek Nakamoto
parent a8f3dd7710
commit 5f20923251
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import 'package:cake_wallet/di.dart';
import 'package:cake_wallet/entities/wallet_manager.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:cake_wallet/store/app_store.dart';
import 'package:cake_wallet/entities/preferences_key.dart';
@ -17,5 +18,6 @@ Future<void> loadCurrentWallet({String? password}) async {
final type = deserializeFromInt(typeRaw);
final walletLoadingService = getIt.get<WalletLoadingService>();
final wallet = await walletLoadingService.load(type, name, password: password);
await getIt.get<WalletManager>().ensureGroupHasHashedIdentifier(wallet);
await appStore.changeCurrentWallet(wallet);
}

View file

@ -61,8 +61,6 @@ void startCurrentWalletChangeReaction(
return;
}
await getIt.get<WalletManager>().ensureGroupHasHashedIdentifier(wallet);
final node = settingsStore.getCurrentNode(wallet.type);
startWalletSyncStatusChangeReaction(wallet, fiatConversionStore);