Skip to content

Commit

Permalink
fix: REGEN_HOME environment variable (#1672)
Browse files Browse the repository at this point in the history
Co-authored-by: Cory <cjlevinson@gmail.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
(cherry picked from commit 807ca0f)
  • Loading branch information
dpdanpittman authored and mergify[bot] committed Dec 16, 2022
1 parent ab77b45 commit 4255e75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/client/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ func NewRootCmd() (*cobra.Command, app.EncodingConfig) {
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{}).
WithBroadcastMode(flags.BroadcastBlock).
WithHomeDir(app.DefaultNodeHome).
WithViper("")
WithViper(app.EnvPrefix)

regenHome := cast.ToString(initClientCtx.Viper.Get(tmcli.HomeFlag))
initClientCtx = initClientCtx.WithHomeDir(regenHome)

rootCmd := &cobra.Command{
Use: "regen",
Expand Down

0 comments on commit 4255e75

Please sign in to comment.