Skip to content

Commit

Permalink
fix(daemon): pay invoice memory violation
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed Nov 5, 2024
1 parent 9a4ffd5 commit 39d2e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/payments/v1alpha/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (srv *Server) CreateInvoice(ctx context.Context, in *payments.CreateInvoice
// If amountSats is provided, the invoice will be paid with that amount. This amount should be equal to the amount on the invoice
// unless the amount on the invoice is 0.
func (srv *Server) PayInvoice(ctx context.Context, in *payments.PayInvoiceRequest) (*emptypb.Empty, error) {
var walletToPay *payments.Wallet
walletToPay := &payments.Wallet{}
var err error
var amountToPay int64

Expand Down

0 comments on commit 39d2e1e

Please sign in to comment.