Skip to content

Commit

Permalink
IOS-3291 Fix doc and uncomment the precheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Apr 4, 2023
1 parent d13821e commit 0b87f1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TangemSdk/TangemSdk/Operations/GetEntropyCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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
}
Expand Down

0 comments on commit 0b87f1a

Please sign in to comment.