Skip to content

Commit

Permalink
plugin: fetchinvoice: assign the quantity to the invrequest field
Browse files Browse the repository at this point in the history
assign the quantity field receive as RPC parameter inside the
invrequest field.

Changelog-Fixed: fetchinvoice: assign the quantity to the invrequest field

Reported-by: @aaronbarnardsound
Link: #6089
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Mar 13, 2023
1 parent be8ed8c commit 628df5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/fetchinvoice.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ static struct command_result *json_fetchinvoice(struct command *cmd,
invreq = invoice_request_for_offer(sent, sent->offer);
invreq->invreq_recurrence_counter = tal_steal(invreq, recurrence_counter);
invreq->invreq_recurrence_start = tal_steal(invreq, recurrence_start);
invreq->invreq_quantity = tal_steal(invreq, quantity);

/* BOLT-offers-recurrence #12:
* - if `offer_amount` is not present:
Expand Down

0 comments on commit 628df5e

Please sign in to comment.