fix: Fix walletconnect connecting only with the first wallet (#1247)

This commit is contained in:
Adegoke David
2023-12-28 03:37:36 +02:00
committed by GitHub
parent c8856f5ca1
commit 92914a8532
8 changed files with 40 additions and 66 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ abstract class WalletCreationVMBase with Store {
: await process(credentials);
walletInfo.address = wallet.walletAddresses.address;
await _walletInfoSource.add(walletInfo);
_appStore.changeCurrentWallet(wallet);
await _appStore.changeCurrentWallet(wallet);
getIt.get<BackgroundTasks>().registerSyncTask();
_appStore.authenticationStore.allowed();
state = ExecutedSuccessfullyState();
@@ -45,7 +45,7 @@ abstract class WalletListViewModelBase with Store {
@action
Future<void> loadWallet(WalletListItem walletItem) async {
final wallet = await _walletLoadingService.load(walletItem.type, walletItem.name);
_appStore.changeCurrentWallet(wallet);
await _appStore.changeCurrentWallet(wallet);
}
WalletListOrderType? get orderType => _appStore.settingsStore.walletListOrder;