aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice.js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-27 00:00:43 -0600
committersecondl1ght <[email protected]>2022-07-27 00:00:43 -0600
commit80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6 (patch)
treeb42820a265d5c2ce47f1ed80cef44220df7a81a5 /src/routes/invoice.js
parent6ceaf176de896862cb398f71ca17f081a798d1cd (diff)
downloadcoinos-ui-80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6.tar.gz
coinos-ui-80cf7e9b77dcc4cbcf7711eb63a218c3aec07ec6.zip
hook up receive page and more adjustments
Diffstat (limited to 'src/routes/invoice.js')
-rw-r--r--src/routes/invoice.js3
1 files changed, 2 insertions, 1 deletions
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();