Skip to content

Fix ISO 4712 typo to ISO 4217 #3433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lightning/src/offers/offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,16 +1028,16 @@ pub enum Amount {
/// The amount in millisatoshi.
amount_msats: u64,
},
/// An amount of currency specified using ISO 4712.
/// An amount of currency specified using ISO 4217.
Currency {
/// The currency that the amount is denominated in.
iso4217_code: CurrencyCode,
/// The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
/// The amount in the currency unit adjusted by the ISO 4217 exponent (e.g., USD cents).
amount: u64,
},
}

/// An ISO 4712 three-letter currency code (e.g., USD).
/// An ISO 4217 three-letter currency code (e.g., USD).
pub type CurrencyCode = [u8; 3];

/// Quantity of items supported by an [`Offer`].
Expand Down
2 changes: 1 addition & 1 deletion lightning/src/util/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ macro_rules! impl_array {
);
}

impl_array!(3, u8); // for rgb, ISO 4712 code
impl_array!(3, u8); // for rgb, ISO 4217 code
impl_array!(4, u8); // for IPv4
impl_array!(12, u8); // for OnionV2
impl_array!(16, u8); // for IPv6
Expand Down
Loading