mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-06 14:35:31 +01:00
Remove Default implementation of MintMeltLimits
The default would have been min=0, max=0. This made any mint initialized with MintMeltLimits::default() to fail every mint and melt operation, because the amount was out of bounds.
This commit is contained in:
@@ -167,7 +167,7 @@ pub async fn create_and_start_test_mint() -> anyhow::Result<Arc<Mint>> {
|
||||
mint_builder = mint_builder.add_ln_backend(
|
||||
CurrencyUnit::Sat,
|
||||
PaymentMethod::Bolt11,
|
||||
MintMeltLimits::default(),
|
||||
MintMeltLimits::new(1, 1_000),
|
||||
ln_fake_backend,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user