From f0e47be2a999f581869856aed782d1fd23e93c70 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Wed, 4 Sep 2024 18:36:46 +0900 Subject: [PATCH] Fix AUTH on NWC --- web/src/lib/Zap.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/lib/Zap.ts b/web/src/lib/Zap.ts index 7ec42829c..8c2abd56b 100644 --- a/web/src/lib/Zap.ts +++ b/web/src/lib/Zap.ts @@ -1,7 +1,7 @@ import { get } from 'svelte/store'; import { _ } from 'svelte-i18n'; import { nip04 } from 'nostr-tools'; -import { createRxForwardReq, createRxNostr } from 'rx-nostr'; +import { createRxForwardReq, createRxNostr, noopSigner } from 'rx-nostr'; import { seckeySigner } from 'rx-nostr-crypto'; import type { Event } from 'nostr-typedef'; import { makeNwcRequestEvent, parseConnectionString } from '$lib/nostr-tools/nip47'; @@ -19,7 +19,10 @@ export async function zapWithWalletConnect(uri: string, invoice: string): Promis const nwcRxNostr = createRxNostr({ verifier: verificationClient.verifier, - signer: seckeySigner(walletSeckey) + signer: noopSigner(), + authenticator: { + signer: seckeySigner(walletSeckey) + } }); nwcRxNostr.setDefaultRelays([walletRelay]);