Updated on 2026-08-14
This commit is contained in:
parent
99cdc003c8
commit
533edc1d16
2 changed files with 12 additions and 3 deletions
|
|
@ -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() }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue