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:
thesimplekid
2025-01-28 13:50:12 +00:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@@ -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,
);

View File

@@ -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(),

View File

@@ -47,6 +47,9 @@ test: build
fi
cargo test --lib
# Run pure integration tests
cargo test -p cdk-integration-tests --test integration_tests_pure
# run `cargo clippy` on everything
clippy *ARGS="--locked --offline --workspace --all-targets":
cargo clippy {{ARGS}}