fix: Wallet grouping

This commit is contained in:
Blazebrain 2025-05-05 19:55:48 +01:00 committed by Czarek Nakamoto
parent 5f20923251
commit c94e003669
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,4 @@
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';
@ -18,6 +17,5 @@ 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,6 +61,8 @@ void startCurrentWalletChangeReaction(
return;
}
await getIt.get<WalletManager>().ensureGroupHasHashedIdentifier(wallet);
final node = settingsStore.getCurrentNode(wallet.type);
startWalletSyncStatusChangeReaction(wallet, fiatConversionStore);