From a8aec0d70ee23ae158e4860876db86b79e0baf18 Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Fri, 22 Dec 2023 22:16:26 +0000 Subject: [PATCH] add exception for allowedAccounts to getAccounts request --- Kukai Mobile/Services/WalletConnectService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kukai Mobile/Services/WalletConnectService.swift b/Kukai Mobile/Services/WalletConnectService.swift index 7026352e..97afc79a 100644 --- a/Kukai Mobile/Services/WalletConnectService.swift +++ b/Kukai Mobile/Services/WalletConnectService.swift @@ -239,8 +239,8 @@ public class WalletConnectService { let normalisedChainName = (tezosChainName == "ithacanet") ? "ghostnet" : tezosChainName let fullRequestedAccount = "tezos:\(normalisedChainName):\(requestedAccount)" let requestedMethod = request.method - - guard allowedAccounts.contains(fullRequestedAccount) else { + + guard requestedMethod == "tezos_getAccounts" || allowedAccounts.contains(fullRequestedAccount) else { self?.delegateErrorOnMain(message: "The requested account \(requestedAccount.truncateTezosAddress()), was not authorised to perform this action. Please ensure you have paired this account with the remote application.", error: nil) completion(false) return