Skip to content

Commit

Permalink
Log
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Sep 3, 2024
1 parent ace9df0 commit 05539d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/lib/Zap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export async function zapWithWalletConnect(uri: string, invoice: string): Promis
relay: walletRelay,
secret: walletSeckey
} = parseConnectionString(uri);
console.debug('[NWC info]', walletRelay, walletPubkey);
const event = await makeNwcRequestEvent(walletPubkey, walletSeckey, invoice);
console.debug('[NWC event]', event);

const nwcRxNostr = createRxNostr({
verifier: verificationClient.verifier,
Expand All @@ -26,7 +28,7 @@ export async function zapWithWalletConnect(uri: string, invoice: string): Promis
const nwcRxReq = createRxForwardReq();
nwcRxNostr.use(nwcRxReq).subscribe({
next: (packet) => {
console.log('[NWC]', packet);
console.log('[NWC success]', packet);
resolve(packet.event);
},
complete: () => {
Expand Down

0 comments on commit 05539d2

Please sign in to comment.