Skip to content

Commit eebcdd0

Browse files
committed
docs(lnurl): add doc comment to resolv_ln_address
Addresses CodeRabbit nitpick on PR #820. run_dev_fee_cycle and resolve_dev_fee_invoice were already documented; only resolv_ln_address was missing one.
1 parent e5af9ec commit eebcdd0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lnurl.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ fn build_callback_url(
9898
Ok(url)
9999
}
100100

101+
/// Resolve a Lightning Address or LNURL-pay string into a BOLT11 invoice
102+
/// for `amount` sats.
103+
///
104+
/// `comment` is attached per LUD-12 when the server advertises support for
105+
/// it (`commentAllowed > 0`); otherwise it's silently dropped, matching the
106+
/// pre-LUD-12 behavior.
101107
pub async fn resolv_ln_address(
102108
address: &str,
103109
amount: u64,

0 commit comments

Comments
 (0)