Skip to content

Commit

Permalink
AND-9248 card attestation bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Nov 28, 2024
1 parent 4bb2113 commit 2458818
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2458818

Please sign in to comment.