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