-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
R4R: Checking Vesting Coins with AmountOf #3486
Conversation
…oins for a more expensive but correct call to AmountOf
5d586d0
to
c256b10
Compare
Codecov Report
@@ Coverage Diff @@
## develop #3486 +/- ##
===========================================
+ Coverage 52.95% 52.97% +0.01%
===========================================
Files 137 137
Lines 10746 10719 -27
===========================================
- Hits 5691 5678 -13
+ Misses 4705 4698 -7
+ Partials 350 343 -7 |
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 -- we should definitely add a test cases for multi-denom accounts. I can add those to this PR or as another. Thoughts @zmanian ?
Looks good to me - pending a changelog line and multi-denom coins set test case |
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.
Thanks - let's add a testcase and a PENDING.md
line - also let's double-check that we don't have any similar premature optimizations elsewhere in the x/auth
module.
I'll take this over @zmanian 👍 |
Is this ready to merge? |
Can we add a testcase or two? |
Updated. Should be good to merge @jackzampolin |
Removes the performance optimization when querying to see if vesting coins are in the correct state and just use AmountOf.
This bug was discovered on Game of Stakes 5.
Fixes #3483 and #3482
Would be benefit from multicoin unit tests.
For Admin Use: