Skip to content

Commit

Permalink
Fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcaseria committed Nov 11, 2024
1 parent b1f11ab commit 2aac939
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions crates/cdk-ldk/src/ln.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1013,27 +1013,25 @@ impl Node {
}

pub fn get_mint_settings(&self) -> MintSettings {
let settings = self.get_settings();
MintSettings {
methods: vec![MintMethodSettings {
method: PaymentMethod::Bolt11,
unit: CurrencyUnit::Sat,
description: false,
min_amount: settings.mint_settings.min_amount,
max_amount: settings.mint_settings.max_amount,
min_amount: Some(Amount::from(1)),
max_amount: Some(Amount::from(10_000_000)),
}],
disabled: false,
}
}

pub fn get_melt_settings(&self) -> MeltSettings {
let settings = self.get_settings();
MeltSettings {
methods: vec![MeltMethodSettings {
method: PaymentMethod::Bolt11,
unit: CurrencyUnit::Sat,
min_amount: settings.melt_settings.min_amount,
max_amount: settings.melt_settings.max_amount,
min_amount: Some(Amount::from(1)),
max_amount: Some(Amount::from(10_000_000)),
}],
disabled: false,
}
Expand Down Expand Up @@ -1221,19 +1219,6 @@ impl MintLightning for Node {
fn get_settings(&self) -> Settings {
Settings {
mpp: false,
mint_settings: MintMethodSettings {
method: PaymentMethod::Bolt11,
unit: CurrencyUnit::Sat,
description: false,
min_amount: Some(Amount::from(1)),
max_amount: Some(Amount::from(10_000_000)),
},
melt_settings: MeltMethodSettings {
method: PaymentMethod::Bolt11,
unit: CurrencyUnit::Sat,
min_amount: Some(Amount::from(1)),
max_amount: Some(Amount::from(10_000_000)),
},
unit: CurrencyUnit::Sat,
invoice_description: false,
}
Expand Down

0 comments on commit 2aac939

Please sign in to comment.