Skip to content

x/ibc: refactor CLI#6639

Merged
fedekunze merged 9 commits intomasterfrom
ibc-refactor-cli
Jul 8, 2020
Merged

x/ibc: refactor CLI#6639
fedekunze merged 9 commits intomasterfrom
ibc-refactor-cli

Conversation

@fedekunze
Copy link
Copy Markdown
Contributor

@fedekunze fedekunze commented Jul 8, 2020

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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@fedekunze fedekunze added Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. x/ibc labels Jul 8, 2020
}

// GetCmdQueryPath defines the command to query the commitment path.
func GetCmdQueryPath(clientCtx client.Context) *cobra.Command {
Copy link
Copy Markdown
Contributor Author

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
Copy link
Copy Markdown

codecov bot commented Jul 8, 2020

Codecov Report

Merging #6639 into master will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #6639   +/-   ##
=======================================
  Coverage   57.73%   57.73%           
=======================================
  Files         497      497           
  Lines       29767    29767           
=======================================
  Hits        17186    17186           
  Misses      11343    11343           
  Partials     1238     1238           

Copy link
Copy Markdown
Contributor

@amaury1093 amaury1093 left a 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 {
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@fedekunze fedekunze merged commit e6bb2e7 into master Jul 8, 2020
@fedekunze fedekunze deleted the ibc-refactor-cli branch July 8, 2020 09:58
@aaronc aaronc mentioned this pull request Jul 10, 2020
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants