From 08ea27d751b5577c394f80f0881e5ac0928e604d Mon Sep 17 00:00:00 2001 From: Vlad Kozarez Date: Thu, 28 Nov 2024 15:41:02 +0300 Subject: [PATCH] AND-9248 card attestation bug fixed --- .../java/com/tangem/operations/attestation/AttestationTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangem-sdk-core/src/main/java/com/tangem/operations/attestation/AttestationTask.kt b/tangem-sdk-core/src/main/java/com/tangem/operations/attestation/AttestationTask.kt index 20f3488d..64b34594 100644 --- a/tangem-sdk-core/src/main/java/com/tangem/operations/attestation/AttestationTask.kt +++ b/tangem-sdk-core/src/main/java/com/tangem/operations/attestation/AttestationTask.kt @@ -176,7 +176,7 @@ class AttestationTask( private fun runOnlineAttestation(scope: CoroutineScope, card: Card) { scope.launch(Dispatchers.IO) { val isDevelopmentCard = card.firmwareVersion.type == FirmwareVersion.FirmwareType.Sdk - val isAttestationFailed = card.attestation.cardKeyAttestation == Attestation.Status.Failed + val isAttestationFailed = currentAttestationStatus.cardKeyAttestation == Attestation.Status.Failed if (isDevelopmentCard || isAttestationFailed) { onlineAttestationChannel.send(CompletionResult.Failure(TangemSdkError.CardVerificationFailed())) return@launch