Skip to content

Commit ef2a15f

Browse files
committed
Update docs for Bolt12SemanticError::InvalidAmount
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`.
1 parent b048708 commit ef2a15f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/offers/parse.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ pub enum Bolt12SemanticError {
144144
/// An amount was expected but was missing.
145145
MissingAmount,
146146
/// The amount exceeded the total bitcoin supply.
147+
///
148+
/// This error can also occur if the amount in an invoice does not match the expected
149+
/// amount specified in the associated `InvoiceRequest` or `Refund`.
147150
InvalidAmount,
148151
/// An amount was provided but was not sufficient in value.
149152
InsufficientAmount,

0 commit comments

Comments
 (0)