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 DecCoins Bugs #4058
Fix DecCoins Bugs #4058
Conversation
Codecov Report
@@ Coverage Diff @@
## release/v0.34.0 #4058 +/- ##
===================================================
+ Coverage 60% 60.01% +<.01%
===================================================
Files 212 212
Lines 15111 15121 +10
===================================================
+ Hits 9068 9075 +7
- Misses 5420 5423 +3
Partials 623 623 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look fine, but I don't think they cover all the cases:
- Couldn't
Mul
on line 321 also return0
if the multiplied-by decimal is small? - DecCoin bugs #4050 mentions that
ParseDecCoins
needs to be changed, but I don't think it does, since it callsIsValid()
- maybe we could add a testcase though
Yes, fixed.
Yes, I mentioned that in the issue. I don't see how it's broken. |
closes: #4050
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
sdkch add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: