From 0b87f1a7c40e185a04a767af480db23319c2c143 Mon Sep 17 00:00:00 2001 From: Alexander Osokin Date: Tue, 4 Apr 2023 15:45:42 +0300 Subject: [PATCH] IOS-3291 Fix doc and uncomment the precheck --- TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift b/TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift index fabeb032b..bcc86c1e5 100644 --- a/TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift +++ b/TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift @@ -17,7 +17,7 @@ public struct GetEntropyResponse: JSONStringConvertible { public let data: Data } -/// Generate OTP on the card. +/// Get entropy from the card @available(iOS 13.0, *) public class GetEntropyCommand: Command { public var preflightReadMode: PreflightReadMode { .readCardOnly } @@ -29,9 +29,9 @@ public class GetEntropyCommand: Command { } func performPreCheck(_ card: Card) -> TangemSdkError? { -// guard card.firmwareVersion >= .isExternalWalletsAllowed else { -// return TangemSdkError.walletNotFound -// } + guard card.firmwareVersion >= .keysImportAvailable else { + return TangemSdkError.walletNotFound + } return nil }