Fix NWC recv (#2062)
This commit is contained in:
parent
1f5e0833db
commit
06d05c7f37
@ -22,7 +22,7 @@ export async function testCreateInvoice ({ nwcUrlRecv }, { signal }) {
|
||||
|
||||
export async function createInvoice ({ msats, description, expiry }, { nwcUrlRecv }, { signal }) {
|
||||
const result = await nwcTryRun(
|
||||
nwc => nwc.sendReq('make_invoice', { amount: msats, description, expiry }),
|
||||
nwc => nwc.req('make_invoice', { amount: msats, description, expiry }),
|
||||
{ nwcUrl: nwcUrlRecv }, { signal }
|
||||
)
|
||||
return result.invoice
|
||||
|
Loading…
x
Reference in New Issue
Block a user