From f2d5c2ca53843e024e7d835e9d52a787c1c9e813 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Thu, 19 Sep 2024 10:09:05 +0200 Subject: [PATCH] fix compilation --- ios/SmartCard.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ios/SmartCard.swift b/ios/SmartCard.swift index 5df787d..bf93d80 100644 --- a/ios/SmartCard.swift +++ b/ios/SmartCard.swift @@ -113,7 +113,7 @@ class SmartCard { try cmdSet.installKeycardInstance().checkOK() os_log("Keycard applet instance re-installed") - factoryResetPost(channel, resolve, reject) + factoryResetPost(channel: channel, resolve: resolve, reject: reject) } func factoryReset(channel: CardChannel, resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) throws -> Void { @@ -121,24 +121,24 @@ class SmartCard { var resp = try cmdSet.select() if (resp.sw != 0x9000) { - factoryResetFallback(channel, resolve, reject) + factoryResetFallback(channel: channel, resolve: resolve, reject: reject) return } let info = try ApplicationInfo(resp.data) if (!info.hasFactoryResetCapability) { - factoryResetFallback(channel, resolve, reject) + factoryResetFallback(channel: channel, resolve: resolve, reject: reject) return } resp = try cmdSet.factoryReset() if (resp.sw != 0x9000) { - factoryResetFallback(channel, resolve, reject) + factoryResetFallback(channel: channel, resolve: resolve, reject: reject) return } - factoryResetPost(channel, resolve, reject) + factoryResetPost(channel: channel, resolve: resolve, reject: reject) } func verifyCard(channel: CardChannel, challenge: String, resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) throws {