Updated on 2026-08-14

This commit is contained in:
Tangem 2023-06-21 17:48:18 +08:00
parent 673e812fd1
commit 150436c3ff
2 changed files with 3 additions and 1 deletions

View file

@ -207,7 +207,8 @@ internal class AddCustomTokenViewModel @Inject constructor(
val defaultNetwork = createNetworkSelectorItem(blockchain = Blockchain.Unknown)
return listOf(defaultNetwork) + Blockchain.values()
.filter { blockchain ->
reduxStateHolder.scanResponse?.card?.supportedBlockchains()?.contains(blockchain) == true
reduxStateHolder.scanResponse?.card?.supportedBlockchains()?.contains(blockchain) == true &&
blockchain != Blockchain.Cardano
}
.sortedBy(Blockchain::fullName)
.map(::createNetworkSelectorItem)

View file

@ -173,5 +173,6 @@ fun Blockchain.isSupportedInApp(): Boolean {
}
private val excludedBlockchains = listOf(
Blockchain.Ducatus,
Blockchain.Unknown,
)