Updated on 2026-08-14

This commit is contained in:
Tangem 2025-06-03 18:18:06 +05:00
parent 4d0a8c6ab0
commit 4f8ee89101
3 changed files with 16 additions and 11 deletions

View file

@ -16,7 +16,7 @@ class GetNFTNetworksUseCase(
.map { cryptoCurrencies ->
val availableNetworks = cryptoCurrencies
.map { cryptoCurrency -> cryptoCurrency.network }
.filter { nftRepository.isNFTSupported(it) }
.filter { nftRepository.isNFTSupported(userWalletId, it) }
.sortedBy { it.name }
val unavailableNetworks = nftRepository

View file

@ -27,7 +27,7 @@ interface NFTRepository {
suspend fun refreshAll(userWalletId: UserWalletId, networks: List<Network>)
suspend fun isNFTSupported(network: Network): Boolean
suspend fun isNFTSupported(userWalletId: UserWalletId, network: Network): Boolean
suspend fun getNFTSupportedNetworks(userWalletId: UserWalletId): List<Network>