-
Notifications
You must be signed in to change notification settings - Fork 673
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
chore: rename any var to protoAny #2986
Conversation
Hey @RegisGraptin, thanks for picking up this issue!
I think the documentation is probably fine, but I think there is some more occurrences of I ran a simple string search using |
Hey @damiannolan, Thanks for your reply. clientAny, err := types.PackClientState(tc.clientState)
...
csAny, _ := clienttypes.PackClientState(counterpartyClient) Do we need to standardized the naming convention for those two ? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2986 +/- ##
=======================================
Coverage 78.53% 78.53%
=======================================
Files 179 179
Lines 12436 12437 +1
=======================================
+ Hits 9767 9768 +1
Misses 2243 2243
Partials 426 426
|
I would say let's just use the same name ( |
Thanks for the latest updates, @RegisGraptin. Do you think the PR is now ready for review? |
Hey @crodriguezvega. Yes, I think it should be good :) |
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 for the contribution! ❤️
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.
Thank you @RegisGraptin! Appreciate the time you took to fix this for us!
Description
Some variable names are too generic and are not precise in the code. This is the case with some variables named
any
. A change has been made to rename itprotoAny
instead.This modification has been made on the variable names when they were assigned by the functions
codectypes.NewAnyWithValue()
orclienttypes.PackClientState()
. It was partially changed on a previous merge. I do not know if other parts of the code needed to be changed ? Nor the documentation ?closes: #2890
Commit Message / Changelog Entry
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.