Updated on 2026-08-14
This commit is contained in:
parent
c227fd1001
commit
0b8ff3e56e
8 changed files with 13 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue