Skip to content

Commit

Permalink
Update docs for Bolt12SemanticError::InvalidAmount
Browse files Browse the repository at this point in the history
Added doc update to clarify that `InvalidAmount` now also covers
cases where the amount in an invoice does not match the expected
amount specified in the associated `InvoiceRequest` or `Refund`.
  • Loading branch information
slanesuke committed Oct 10, 2024
1 parent f15db05 commit 35e3daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightning/src/offers/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ pub enum Bolt12SemanticError {
/// An amount was expected but was missing.
MissingAmount,
/// The amount exceeded the total bitcoin supply.
///
/// This error can also occur if the amount in an invoice does not match the expected
/// amount specified in the associated `InvoiceRequest` or `Refund`.
InvalidAmount,
/// An amount was provided but was not sufficient in value.
InsufficientAmount,
Expand Down

0 comments on commit 35e3daa

Please sign in to comment.