Skip to content

Commit

Permalink
fix: webln nwc lookup invoice example
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Feb 7, 2024
1 parent 409213b commit a73decb
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 a73decb

Please sign in to comment.