mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-18 21:34:48 +01:00
Merge pull request #3433 from andrei-21/fix/iso-typo
Fix `ISO 4712` typo to `ISO 4217`
This commit is contained in:
commit
846342eec1
@ -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`].
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user