Updated on 2026-08-14
This commit is contained in:
parent
b58be5612e
commit
8966e28e29
55 changed files with 572 additions and 192 deletions
|
|
@ -57,7 +57,6 @@ internal class PreviewCustomTokenSelectorComponent(
|
|||
CurrencyNetworkUM(
|
||||
network = Network(
|
||||
id = n.id,
|
||||
backendId = n.id.rawId.value,
|
||||
name = "Network $index",
|
||||
currencySymbol = "N$index",
|
||||
derivationPath = Network.DerivationPath.Card(""),
|
||||
|
|
|
|||
|
|
@ -154,7 +154,6 @@ internal class PreviewManageTokensComponent(
|
|||
CurrencyNetworkUM(
|
||||
network = Network(
|
||||
id = Network.ID(value = networkIndex.toString(), derivationPath = derivationPath),
|
||||
backendId = networkIndex.toString(),
|
||||
name = "Network $networkIndex",
|
||||
currencySymbol = "N$networkIndex",
|
||||
derivationPath = derivationPath,
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ internal class PreviewOnboardingManageTokensComponent(
|
|||
CurrencyNetworkUM(
|
||||
network = Network(
|
||||
id = Network.ID(value = networkIndex.toString(), derivationPath = derivationPath),
|
||||
backendId = networkIndex.toString(),
|
||||
name = "Network $networkIndex",
|
||||
currencySymbol = "N$networkIndex",
|
||||
derivationPath = derivationPath,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package com.tangem.features.managetokens.model
|
|||
import arrow.core.getOrElse
|
||||
import com.arkivanov.decompose.router.slot.SlotNavigation
|
||||
import com.arkivanov.decompose.router.slot.activate
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchainsdk.utils.toBlockchain
|
||||
import com.tangem.common.ui.account.toUM
|
||||
import com.tangem.core.decompose.di.ModelScoped
|
||||
import com.tangem.core.decompose.model.Model
|
||||
|
|
@ -199,7 +199,7 @@ internal class CustomTokenSelectorModel @Inject constructor(
|
|||
private fun DerivationPathSelector.checkAccountDerivation(derivationPath: SelectedDerivationPath) =
|
||||
modelScope.launch {
|
||||
val account = derivationPath.id
|
||||
?.let { Blockchain.fromId(it.rawId.value) }
|
||||
?.toBlockchain()
|
||||
?.let(::AccountNodeRecognizer)
|
||||
?.let { recognizer ->
|
||||
val derivationPathValue = derivationPath.value.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue