Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-23 14:43:35 +05:00
parent c227fd1001
commit 0b8ff3e56e
8 changed files with 13 additions and 16 deletions

View file

@ -135,13 +135,10 @@ internal class DefaultNFTRepository @Inject constructor(
override suspend fun isNFTSupported(network: Network): Boolean = network.canHandleNFTs()
override suspend fun getNFTSupportedNetworks(userWalletId: UserWalletId): List<Network> {
val userWallet = requireNotNull(userWalletsStore.getSyncOrNull(userWalletId)) {
"User wallet [$userWalletId] not found"
}
val userWallet = userWalletsStore.getSyncStrict(userWalletId)
return Blockchain
.entries
.filter { it.canHandleNFTs() }
.filter { !it.isTestnet() }
.filter { it.canHandleNFTs() && !it.isTestnet() }
.mapNotNull {
getNetwork(
blockchain = it,