mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-26 00:55:02 +01:00
Merge pull request #565 from ok300/ok300-remove-mintmeltlimit-default
Include pure integration tests in `just final-check`, fix edge-case
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,
|
||||
);
|
||||
|
||||
|
||||
@@ -242,8 +242,8 @@ impl MintBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
/// Mint Melt Limits
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
|
||||
/// Mint and Melt Limits
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct MintMeltLimits {
|
||||
/// Min mint amount
|
||||
pub mint_min: Amount,
|
||||
@@ -256,7 +256,7 @@ pub struct MintMeltLimits {
|
||||
}
|
||||
|
||||
impl MintMeltLimits {
|
||||
/// Create new [`MintMeltLimits`]
|
||||
/// Create new [`MintMeltLimits`]. The `min` and `max` limits apply to both minting and melting.
|
||||
pub fn new(min: u64, max: u64) -> Self {
|
||||
Self {
|
||||
mint_min: min.into(),
|
||||
|
||||
Reference in New Issue
Block a user