From fa731ae8320c8301cd53e11935b6e2ac306eda75 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 28 Nov 2024 00:00:00 +0000 Subject: [PATCH] Fix `ISO 4712` typo to `ISO 4217` --- lightning/src/offers/offer.rs | 6 +++--- lightning/src/util/ser.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lightning/src/offers/offer.rs b/lightning/src/offers/offer.rs index bf6685079..3843c10cb 100644 --- a/lightning/src/offers/offer.rs +++ b/lightning/src/offers/offer.rs @@ -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`]. diff --git a/lightning/src/util/ser.rs b/lightning/src/util/ser.rs index e4158e31b..281789067 100644 --- a/lightning/src/util/ser.rs +++ b/lightning/src/util/ser.rs @@ -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