Skip to content

Commit

Permalink
fixes for go-lnurl type updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Oct 20, 2023
1 parent 389943a commit 57a8fbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lnurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func handleLNURL(w http.ResponseWriter, r *http.Request) {
maxSendable = 1000000000
}

json.NewEncoder(w).Encode(lnurl.LNURLPayResponse1{
json.NewEncoder(w).Encode(lnurl.LNURLPayParams{
LNURLResponse: lnurl.LNURLResponse{Status: "OK"},
Callback: fmt.Sprintf("https://%s/.well-known/lnurlp/%s", domain, username),
MinSendable: minSendable,
Expand All @@ -87,10 +87,10 @@ func handleLNURL(w http.ResponseWriter, r *http.Request) {
return
}

json.NewEncoder(w).Encode(lnurl.LNURLPayResponse2{
json.NewEncoder(w).Encode(lnurl.LNURLPayValues{
LNURLResponse: lnurl.LNURLResponse{Status: "OK"},
PR: bolt11,
Routes: make([][]lnurl.RouteInfo, 0),
Routes: make([]interface{}, 0),
Disposable: lnurl.FALSE,
SuccessAction: lnurl.Action("Payment received!", ""),
})
Expand Down

0 comments on commit 57a8fbb

Please sign in to comment.