-
Notifications
You must be signed in to change notification settings - Fork 61
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: stylecheck lint error on chainId
in osmosis submodule
#1724
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe changes in this pull request primarily focus on the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
x/participationrewards/keeper/submodule_osmosiscl.go (1)
135-136
: Approved: Improved naming convention for chainID parameter.The change from
chainId
tochainID
in the function signature is a good improvement. It aligns with Go's naming conventions for abbreviations in identifiers.For consistency, consider updating the variable name in the function's return signature as well:
-func (k *Keeper) ApplicableDenomForZone(ctx sdk.Context, chainID string) (denom string, found bool) { +func (k *Keeper) ApplicableDenomForZone(ctx sdk.Context, chainID string) (denom string, found bool) {This change would make the function signature fully consistent with the updated parameter name.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1724 +/- ##
=======================================
Coverage 63.41% 63.41%
=======================================
Files 194 194
Lines 13436 13436
=======================================
Hits 8521 8521
Misses 4097 4097
Partials 818 818
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
1. Summary
Fixes # (issue)
chainId
variable.2.Type of change
3. Implementation details
chainId
tochainID
4. How to test/use
[email protected] run
5. Checklist
Summary by CodeRabbit
Bug Fixes
Hooks
method with clearer error messages for JSON unmarshalling and protocol data queries.Improvements
ApplicableDenomForZone
method.ValidateClaim
method for better user understanding.