From f8e1514f9a8b78a3b22f5f0e34f5c74a35804951 Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Fri, 3 Feb 2023 15:22:43 +0530 Subject: [PATCH 1/2] Update Router.m for compatibility with MacOS --- Sources/WalletConnectRouter/Router.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/WalletConnectRouter/Router.m b/Sources/WalletConnectRouter/Router.m index 9010aa7e6..0648d6eb1 100644 --- a/Sources/WalletConnectRouter/Router.m +++ b/Sources/WalletConnectRouter/Router.m @@ -1,6 +1,8 @@ #import #import "Router.h" +#if __has_include() + @import UIKit; @import ObjectiveC.runtime; @@ -24,3 +26,5 @@ + (void)goBack { @end +#endif + From 4d6da86a255b4aa2674b74bef4eebc945cbb6952 Mon Sep 17 00:00:00 2001 From: Artur Guseinov Date: Fri, 3 Feb 2023 18:19:23 +0530 Subject: [PATCH 2/2] Old keyserver tests disabled --- Example/IntegrationTests/Chat/RegistryTests.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Example/IntegrationTests/Chat/RegistryTests.swift b/Example/IntegrationTests/Chat/RegistryTests.swift index ab665f828..ea21c9375 100644 --- a/Example/IntegrationTests/Chat/RegistryTests.swift +++ b/Example/IntegrationTests/Chat/RegistryTests.swift @@ -6,13 +6,4 @@ import WalletConnectUtils final class RegistryTests: XCTestCase { - func testRegistry() async throws { - let client = HTTPNetworkClient(host: "keys.walletconnect.com") - let registry = KeyserverRegistryProvider(client: client) - let account = Account("eip155:1:" + Data.randomBytes(count: 16).toHexString())! - let pubKey = SigningPrivateKey().publicKey.hexRepresentation - try await registry.register(account: account, pubKey: pubKey) - let resolvedKey = try await registry.resolve(account: account) - XCTAssertEqual(resolvedKey, pubKey) - } }