From 1b161fefd099d8df6f57d694a0becc9289c12e4a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 15 May 2023 12:54:42 -0700 Subject: [PATCH] nwc: make sure to support nostr+walletconnect scheme not sure why we have 2 schemes --- damus/Util/WalletConnect.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/damus/Util/WalletConnect.swift b/damus/Util/WalletConnect.swift index 3ce5ffbb..c3ffc399 100644 --- a/damus/Util/WalletConnect.swift +++ b/damus/Util/WalletConnect.swift @@ -36,7 +36,8 @@ struct WalletConnectURL: Equatable { } init?(str: String) { - guard let url = URL(string: str), url.scheme == "nostrwalletconnect", + guard let url = URL(string: str), + url.scheme == "nostrwalletconnect" || url.scheme == "nostr+walletconnect", let pk = url.host, pk.utf8.count == 64, let components = URLComponents(url: url, resolvingAgainstBaseURL: true), let items = components.queryItems,