-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
x/ibc: refactor CLI #6639
x/ibc: refactor CLI #6639
Conversation
@@ -175,17 +176,3 @@ $ %s query ibc client node-state | |||
}, | |||
} | |||
} | |||
|
|||
// GetCmdQueryPath defines the command to query the commitment path. | |||
func GetCmdQueryPath(clientCtx client.Context) *cobra.Command { |
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.
this query is not required anymore
Codecov Report
@@ Coverage Diff @@
## master #6639 +/- ##
=======================================
Coverage 57.73% 57.73%
=======================================
Files 497 497
Lines 29767 29767
=======================================
Hits 17186 17186
Misses 11343 11343
Partials 1238 1238 |
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 overall, we could also refactor GetQueryCmd in this PR too?
@@ -55,18 +54,16 @@ $ %s query ibc client states | |||
// a given id as defined in https://github.com/cosmos/ics/tree/master/spec/ics-002-client-semantics#query | |||
func GetCmdQueryClientState(clientCtx client.Context) *cobra.Command { |
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.
Could remove client.Context
arg from GetCmd* as part of this refactor too
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.
you need to pass in the clientCtx afaik. cc: @alexanderbez
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.
Actually @fedekunze we need to remove it. A client.Context
should never be passed as an arg -- query or tx. I'm not sure how I missed this in x/bank
. Thanks for catching this @amaurymartiny!
x/bank PR: #6645
Co-authored-by: Amaury Martiny <[email protected]>
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.
utACK
Description
ref: #6423
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.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes