Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-17 10:43:29 +03:00
parent c5f7baa0ff
commit 6ad2d142a4
10 changed files with 55 additions and 25 deletions

View file

@ -345,6 +345,12 @@ internal class DefaultUserWalletsListRepository(
userWalletEncryptionKeysRepository.clear()
}
override suspend fun hasSecuredWallets(): Boolean {
val userWallets = userWalletsSync()
val unsecuredWalletIds = userWalletEncryptionKeysRepository.getAllUnsecured().map { it.walletId }.toSet()
return userWallets.any { it.walletId !in unsecuredWalletIds }
}
private suspend fun requestPasswordRecursive(
hotWalletId: HotWalletId,
block: suspend (CharArray) -> UserWalletEncryptionKey?,