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) } }