Skip to content
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 for the --home flag #852

Merged
merged 2 commits into from
May 11, 2021
Merged

Conversation

zmanian
Copy link
Member

@zmanian zmanian commented May 11, 2021

Fixes the --home flag in gaia 4.6


For contributor use:

  • 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

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #852 (b6a6a18) into hub/cosmoshub-4.6 (c1a41c2) will not change coverage.
The diff coverage is n/a.

@@                Coverage Diff                @@
##           hub/cosmoshub-4.6    #852   +/-   ##
=================================================
  Coverage               0.40%   0.40%           
=================================================
  Files                      7       7           
  Lines                    490     490           
=================================================
  Hits                       2       2           
  Misses                   487     487           
  Partials                   1       1           

@@ -45,7 +45,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
WithAccountRetriever(types.AccountRetriever{}).
WithBroadcastMode(flags.BroadcastBlock).
WithHomeDir(gaia.DefaultNodeHome).
WithViper("") // In simapp, we don't use any prefix for env variables.
WithViper("GAIA")
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link

@adizere adizere left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix. Confirm this works for me.

Copy link
Contributor

@shahankhatch shahankhatch left a comment

Choose a reason for hiding this comment

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

Thanks @zmanian!

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

LGTM

@shahankhatch shahankhatch merged commit 986a9a3 into hub/cosmoshub-4.6 May 11, 2021
@shahankhatch shahankhatch deleted the zaki-fix-home-in-4.6 branch May 11, 2021 14:17
shahankhatch pushed a commit that referenced this pull request May 11, 2021
* Adds the necessary setup to the gaia viper root to handle the home flag and config.toml file correctly

* Add an environment variable prefix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants