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 <[email protected]>
Co-authored-by: Ryan Christoffersen <[email protected]>
  • Loading branch information
3 people authored Dec 16, 2022
1 parent a9e0362 commit 807ca0f
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 807ca0f

Please sign in to comment.