From 7bf30888baf944f8153a03af9f91facb75754e73 Mon Sep 17 00:00:00 2001 From: Bartosz Rozwarski Date: Thu, 30 Nov 2023 10:09:35 +0100 Subject: [PATCH] savepoint --- .../WalletApp/ApplicationLayer/Application.swift | 3 ++- .../Keychain/KeychainStorage.swift | 16 ++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/Example/WalletApp/ApplicationLayer/Application.swift b/Example/WalletApp/ApplicationLayer/Application.swift index 95e3a6ab8..6c3814b55 100644 --- a/Example/WalletApp/ApplicationLayer/Application.swift +++ b/Example/WalletApp/ApplicationLayer/Application.swift @@ -1,5 +1,6 @@ import Foundation -import WalletConnectChat +import WalletConnectUtils +import WalletConnectSigner final class Application { var uri: WalletConnectURI? diff --git a/Sources/WalletConnectKMS/Keychain/KeychainStorage.swift b/Sources/WalletConnectKMS/Keychain/KeychainStorage.swift index fa521095a..b75cc681c 100644 --- a/Sources/WalletConnectKMS/Keychain/KeychainStorage.swift +++ b/Sources/WalletConnectKMS/Keychain/KeychainStorage.swift @@ -141,13 +141,7 @@ public final class KeychainStorage: KeychainStorageProtocol { updateQuery[kSecAttrAccessible] = kSecAttrAccessibleWhenUnlockedThisDeviceOnly let attributes = [kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly] - let status = secItem.update(updateQuery as CFDictionary, attributes as CFDictionary) - - if status == errSecSuccess { - print("Successfuly migrated with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly") - } else { - print("Item for query not found, item potentially already migrated with kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly") - } + let _ = secItem.update(updateQuery as CFDictionary, attributes as CFDictionary) } private func tryToMigrateKeyToNewAccessGroupOnRead(key: String) throws -> Data? { @@ -189,12 +183,6 @@ public final class KeychainStorage: KeychainStorageProtocol { kSecAttrAccessGroup: accessGroup ] as [CFString: Any] - let status = secItem.update(query as CFDictionary, attributesToUpdate as CFDictionary) - - if status == errSecSuccess { - print("Successfuly migrated with kSecAttrAccessGroup") - } else { - print("Item for query not found, item potentially already migrated with kSecAttrAccessGroup") - } + let _ = secItem.update(query as CFDictionary, attributesToUpdate as CFDictionary) } }