Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include pure integration tests in just final-check, fix edge-case #565

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

ok300
Copy link
Contributor

@ok300 ok300 commented Jan 28, 2025

Description

This PR

  • includes the pure integration tests in just final-check
  • fixes an edge case found by running the pure integration tests: initializing a mint with MintMeltLimits::default() would cause any minting and melting to fail with AmountOutofLimitRange. This is because the default is min=0 and max=0. By removing the default, this forces the caller(s) to explicitly set the limits via MintMeltLimits::new(min, max).

Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

  • Include pure integration tests in local check (just final-check)

REMOVED

FIXED


Checklist

ok300 added 2 commits January 28, 2025 12:33
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.
@thesimplekid thesimplekid merged commit f31ea12 into cashubtc:main Jan 28, 2025
63 checks passed
@ok300 ok300 deleted the ok300-remove-mintmeltlimit-default branch January 28, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants