-
Notifications
You must be signed in to change notification settings - Fork 716
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
Conversation
…ag and config.toml file correctly
Codecov Report
@@ 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") |
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.
👍
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 quick fix. Confirm this works for me.
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 @zmanian!
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
* Adds the necessary setup to the gaia viper root to handle the home flag and config.toml file correctly * Add an environment variable prefix.
Fixes the
--home
flag in gaia 4.6For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)