Skip to content

Commit 35e3daa

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 f15db05 commit 35e3daa

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
@@ -147,6 +147,9 @@ pub enum Bolt12SemanticError {
147147
/// An amount was expected but was missing.
148148
MissingAmount,
149149
/// The amount exceeded the total bitcoin supply.
150+
///
151+
/// This error can also occur if the amount in an invoice does not match the expected
152+
/// amount specified in the associated `InvoiceRequest` or `Refund`.
150153
InvalidAmount,
151154
/// An amount was provided but was not sufficient in value.
152155
InsufficientAmount,

0 commit comments

Comments
 (0)