-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix: negative minted amount is also requested #264
Fix: negative minted amount is also requested #264
Conversation
4f667ff
to
b531e56
Compare
b531e56
to
bfa1773
Compare
The only error appears to have been uploading to Codecov |
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #264 +/- ##
==========================================
+ Coverage 84.73% 84.75% +0.02%
==========================================
Files 26 26
Lines 3033 3044 +11
Branches 731 740 +9
==========================================
+ Hits 2570 2580 +10
Misses 348 348
- Partials 115 116 +1
|
Note: this breaks if the burned amount is manually added as input, because the minted amount is added to the |
Nice! I will try to add a test. Btw, is there a way to allow me to push to your branch (OpShin:fix/minted_amount_requested)? |
You should have access now :) |
I fixed the previously mentioned issue when pre-selected inputs contain the token to be burned. What's missing is a unit test that checks the automatic selection of tokens to be burned |
For transactions that only specified a token to be burned it could currently happen that the token was not selected by the input selector - because negative minting amounts were not counted as requested by the tx builder. This is a bugfix.