Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-16 00:18:38 +07:00
parent 99cdc003c8
commit 533edc1d16
2 changed files with 12 additions and 3 deletions

View file

@ -170,6 +170,10 @@ internal class SavedSwapTransactionListConverter(
}
private fun UserTokensResponse.Token.getDerivationIndex(): DerivationIndex? {
return accountId?.toIntOrNull()?.let { DerivationIndex(it).getOrNull() }
val blockchain = Blockchain.fromNetworkId(networkId) ?: return null
val accountNodeRecognizer = AccountNodeRecognizer(blockchain)
return derivationPath
?.let { accountNodeRecognizer.recognize(it) }
?.let { DerivationIndex(it.toInt()).getOrNull() }
}
}