From 80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Wed, 27 Jul 2022 00:00:43 -0600 Subject: hook up receive page and more adjustments --- src/routes/invoice.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/routes/invoice.js') diff --git a/src/routes/invoice.js b/src/routes/invoice.js index 49bcfe70..147da2b7 100644 --- a/src/routes/invoice.js +++ b/src/routes/invoice.js @@ -1,4 +1,5 @@ import got from 'got'; +import { invoiceAmount } from '$lib/store'; const username = 'bob', network = 'lightning'; @@ -6,7 +7,7 @@ const username = 'bob', export async function GET({ params }) { let text = await got .post('http://localhost:3119/lightning/invoice', { - json: { amount: 100 } + json: { amount: invoiceAmount } }) .text(); -- cgit v1.2.3