Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Nov 30, 2023
1 parent 4ed3ba9 commit 7bf4c89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Sources/WalletConnectKMS/Keychain/KeychainStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,12 @@ public final class KeychainStorage: KeychainStorageProtocol {
kSecAttrAccessGroup: accessGroup
] as [CFString: Any]

let updateStatus = secItem.update(query as CFDictionary, attributesToUpdate as CFDictionary)
let status = secItem.update(query as CFDictionary, attributesToUpdate as CFDictionary)

print("Migrate Key To New Access Group status: \(updateStatus)")
guard updateStatus == errSecSuccess else {
throw KeychainError(updateStatus)
if status == errSecSuccess {
print("Successfuly migrated with kSecAttrAccessGroup")
} else {
print("Item for query not found, item potentially already migrated with kSecAttrAccessGroup")
}
}
}

0 comments on commit 7bf4c89

Please sign in to comment.