We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CurrencyCode
1 parent 8568e8e commit c7483f8Copy full SHA for c7483f8
src/ffi/types.rs
@@ -126,9 +126,8 @@ impl From<LdkAmount> for OfferAmount {
126
fn from(ldk_amount: LdkAmount) -> Self {
127
match ldk_amount {
128
LdkAmount::Bitcoin { amount_msats } => OfferAmount::Bitcoin { amount_msats },
129
- LdkAmount::Currency { iso4217_code, amount } => OfferAmount::Currency {
130
- iso4217_code: iso4217_code.iter().map(|&b| b as char).collect(),
131
- amount,
+ LdkAmount::Currency { iso4217_code, amount } => {
+ OfferAmount::Currency { iso4217_code: iso4217_code.as_str().to_owned(), amount }
132
},
133
}
134
0 commit comments