damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 1b161fefd099d8df6f57d694a0becc9289c12e4a
parent 0b9a274e67c38a6f27d4309bc0143b4f541c93ff
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 15 May 2023 12:54:42 -0700

nwc: make sure to support nostr+walletconnect scheme

not sure why we have 2 schemes

Diffstat:
Mdamus/Util/WalletConnect.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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,