Updated on 2026-08-14
This commit is contained in:
parent
3580350769
commit
8aba7b07d1
49 changed files with 172 additions and 134 deletions
|
|
@ -23,10 +23,10 @@ internal class ScanCardExceptionConverter : TwoWayConverter<TangemError, ScanCar
|
|||
}
|
||||
|
||||
private fun convertTangemSdkError(value: TangemSdkError): ScanCardException = when (value) {
|
||||
is TangemSdkError.UserCancelled -> ScanCardException.UserCancelled
|
||||
is TangemSdkError.UserCancelled -> ScanCardException.UserCancelled()
|
||||
is TangemSdkError.WrongAccessCode,
|
||||
is TangemSdkError.WrongPasscode,
|
||||
-> ScanCardException.WrongAccessCode
|
||||
-> ScanCardException.WrongAccessCode()
|
||||
is TangemSdkError.WrongCardNumber -> ScanCardException.WrongCardId(value.cardId)
|
||||
else -> ScanCardException.UnknownException(value)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import com.tangem.blockchainsdk.utils.fromNetworkId
|
|||
import com.tangem.crypto.hdWallet.DerivationPath
|
||||
import com.tangem.datasource.local.token.UserTokensResponseStore
|
||||
import com.tangem.domain.wallets.derivations.DerivationStyleProvider
|
||||
import com.tangem.domain.card.common.TapWorkarounds.useOldStyleDerivation
|
||||
import com.tangem.domain.card.common.TapWorkarounds.hasOldStyleDerivation
|
||||
import com.tangem.domain.models.scan.CardDTO
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
import com.tangem.domain.wallets.builder.UserWalletIdBuilder
|
||||
|
|
@ -54,7 +54,7 @@ internal class DerivationsFinder(
|
|||
}
|
||||
|
||||
// pay attention to this
|
||||
if (!card.useOldStyleDerivation) {
|
||||
if (!card.hasOldStyleDerivation) {
|
||||
blockchains.removeUnnecessaryBlockchains()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue