Skip to content

Commit

Permalink
Merge pull request #201 from getAlby/fix/nwc-webln-lookup-invoice-exa…
Browse files Browse the repository at this point in the history
…mple

fix: webln nwc lookup invoice example
  • Loading branch information
rolznz authored Feb 7, 2024
2 parents 744689b + a73decb commit 63f1ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nwc/lookup-invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const webln = new providers.NostrWebLNProvider({
await webln.enable();
const response = await webln.lookupInvoice({
// provide one of the below
invoice: invoiceOrPaymentHash.startsWith("ln")
paymentRequest: invoiceOrPaymentHash.startsWith("ln")
? invoiceOrPaymentHash
: undefined,
payment_hash: !invoiceOrPaymentHash.startsWith("ln")
paymentHash: !invoiceOrPaymentHash.startsWith("ln")
? invoiceOrPaymentHash
: undefined,
});
Expand Down

0 comments on commit 63f1ad4

Please sign in to comment.