Skip to content

Commit fa4f1fc

Browse files
committed
Correctly refer to pay_for_offer_from_hrn in pay_for_offer docs
If a `pay_for_offer` call comes in that was for an HRN, downstream code should instead call `pay_for_offer_from_hrn`, not `pay_for_offer`.
1 parent 884158d commit fa4f1fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14573,7 +14573,8 @@ impl<
1457314573
/// [`bitcoin-payment-instructions` crate](https://docs.rs/bitcoin-payment-instructions/) to
1457414574
/// resolve payment instructions strings (e.g. from QR codes, link opens, pasted instructions,
1457514575
/// or typed instructions) into payment instructions and use this when the instructions resolve
14576-
/// to a BOLT 12 offer.
14576+
/// to a BOLT 12 offer or [`Self::pay_for_offer_from_hrn`] when they resolve to a BOLT 12 offer
14577+
/// via a human-readable-name.
1457714578
///
1457814579
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
1457914580
/// [`InvoiceRequestBuilder`]: crate::offers::invoice_request::InvoiceRequestBuilder

0 commit comments

Comments
 (0)