Skip to content

Commit

Permalink
Merge pull request #702 from WalletConnect/feature/router-macos-fix
Browse files Browse the repository at this point in the history
[Router] Compatibility with MacOS
  • Loading branch information
flypaper0 authored Feb 3, 2023
2 parents ae64217 + 4d6da86 commit 98769d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Example/IntegrationTests/Chat/RegistryTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
4 changes: 4 additions & 0 deletions Sources/WalletConnectRouter/Router.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#import <Foundation/Foundation.h>
#import "Router.h"

#if __has_include(<UIKit/UIKit.h>)

@import UIKit;
@import ObjectiveC.runtime;

Expand All @@ -24,3 +26,5 @@ + (void)goBack {

@end

#endif

0 comments on commit 98769d8

Please sign in to comment.