test invoice has pin in its description.

fixes https://github.com/fiatjaf/satdress/issues/12
This commit is contained in:
fiatjaf
2021-08-28 09:50:17 -03:00
parent 8a659a98e6
commit efb41f6d6b
5 changed files with 42 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ func handleLNURL(w http.ResponseWriter, r *http.Request) {
return
}
bolt11, err := makeInvoice(params, msat)
bolt11, err := makeInvoice(params, msat, nil)
if err != nil {
json.NewEncoder(w).Encode(
lnurl.ErrorResponse("failed to create invoice: " + err.Error()))