diff --git a/lib/cln.js b/lib/cln.js index 98138e3d..489fb248 100644 --- a/lib/cln.js +++ b/lib/cln.js @@ -3,7 +3,7 @@ import crypto from 'crypto' import { getAgent } from '@/lib/proxy' import { assertContentTypeJson, assertResponseOk } from './url' -export const createInvoice = async ({ socket, rune, cert, label, description, msats, expiry }) => { +export const createInvoice = async ({ msats, description, expiry }, { socket, rune, cert }) => { const agent = getAgent({ hostname: socket, cert }) const url = `${agent.protocol}//${socket}/v1/invoice` diff --git a/wallets/cln/server.js b/wallets/cln/server.js index 53b958b1..a41c8fd7 100644 --- a/wallets/cln/server.js +++ b/wallets/cln/server.js @@ -7,18 +7,20 @@ export const testCreateInvoice = async ({ socket, rune, cert }) => { } export const createInvoice = async ( - { msats, description, descriptionHash, expiry }, + { msats, description, expiry }, { socket, rune, cert } ) => { - const inv = await clnCreateInvoice({ - socket, - rune, - cert, - description, - descriptionHash, - msats, - expiry - }) + const inv = await clnCreateInvoice( + { + msats, + description, + expiry + }, + { + socket, + rune, + cert + }) return inv.bolt11 }