-
Notifications
You must be signed in to change notification settings - Fork 31
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: allow zero amount of coin in x/collection Query/Balance #953
fix: allow zero amount of coin in x/collection Query/Balance #953
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## rc/v0.47.0-alpha1 #953 +/- ##
==================================================
Coverage 62.43% 62.44%
==================================================
Files 655 655
Lines 79814 79817 +3
==================================================
+ Hits 49834 49838 +4
+ Misses 27292 27291 -1
Partials 2688 2688
|
in test code, NewCoin is still used. is it ok? |
Technically, it would be OK, because the balance would not be zero, but it would be better not to use NewCoins() in the test. I will apply your suggestion. Thank you. |
* rc/v0.47.0-alpha1: (34 commits) ci: update docker action (Finschia#983) fix: revert Finschia#952 (Finschia#984) refactor: refactor x/token,collection query errors (Finschia#980) fix: not to throw error when no txs in block (Finschia#982) chore: change import path to `github.com/Finschia/finschia-sdk` (Finschia#970) fix: remove legacy events on x/collection and x/token (Finschia#966) chore: provide specific error messages on x/collection queries (Finschia#965) fix: check event determinism on original modules (Finschia#963) fix: refactor queries of x/collection and x/token (Finschia#957) chore: address generation of the empty coins in x/foundation (Finschia#952) fix: do not loop enum in x/collection (Finschia#961) fix: fix default next class ids of x/collection (Finschia#960) fix: revert Finschia#955 and add Query/HasParent into x/collection (Finschia#959) fix: replace query errors on the original modules into gRPC ones (Finschia#956) fix: return nil where the parent not exists in x/collection Query/Parent (Finschia#955) fix: remove duplicated events in x/collection Msg/Modify (Finschia#954) fix: allow zero amount of coin in x/collection Query/Balance (Finschia#953) fix: unpack proposals in x/foundation import-genesis (Finschia#947) fix: fix broken x/foundation invariant on treasury (Finschia#946) docs: update comments in the x/token,collection events proto (Finschia#944) ...
Description
This patch would allow zero amount of coin in x/collection Query/Balance.
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml