From efb41f6d6bc23b80a85d69b56e1895a2d84b413b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 28 Aug 2021 09:50:17 -0300 Subject: [PATCH] test invoice has pin in its description. fixes https://github.com/fiatjaf/satdress/issues/12 --- db.go | 4 +++- index.html | 5 +++++ lnurl.go | 2 +- makeinvoice.go | 45 +++++++++++++++++++++++++++++---------------- static/style.css | 4 ++++ 5 files changed, 42 insertions(+), 18 deletions(-) diff --git a/db.go b/db.go index 064c1a1..5b37025 100644 --- a/db.go +++ b/db.go @@ -40,8 +40,10 @@ func SaveName( } } + params.Name = name + // check if the given data works - if inv, err = makeInvoice(params, 1000); err != nil { + if inv, err = makeInvoice(params, 1000, &pin); err != nil { return "", "", fmt.Errorf("couldn't make an invoice with the given data: %w", err) } diff --git a/index.html b/index.html index 616513a..ed4c865 100644 --- a/index.html +++ b/index.html @@ -58,6 +58,7 @@