aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-26 11:34:05 -0700
committerAdam Soltys <[email protected]>2022-09-26 11:34:05 -0700
commit7881ecd6a4fcbb820ee1607f1e7f6fcc3ce15dfe (patch)
treeee412893ed38e042714ae53400074c0f3714193f /src/routes/invoice
parentb195948670ec57c14cf51b92839a57b8f34c9194 (diff)
downloadcoinos-ui-7881ecd6a4fcbb820ee1607f1e7f6fcc3ce15dfe.tar.gz
coinos-ui-7881ecd6a4fcbb820ee1607f1e7f6fcc3ce15dfe.zip
use invoice uuid
Diffstat (limited to 'src/routes/invoice')
-rw-r--r--src/routes/invoice/+server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/invoice/+server.js b/src/routes/invoice/+server.js
index 1a196bcf..c408c4e5 100644
--- a/src/routes/invoice/+server.js
+++ b/src/routes/invoice/+server.js
@@ -7,7 +7,7 @@ export async function POST({ request, parent }) {
if (network === 'lightning') {
invoice.text = (await post('/lightning/invoice', { amount }, auth(request))).text;
} else {
- invoice.address = (await parent()).user.address;
+ invoice.address = (await get('/address?network=bitcoin&type=bech32')).address;
}
console.log("INVOICE", invoice)