Skip to content

Commit

Permalink
fix: re-create viper instance to get env vars and correct home (#1207)
Browse files Browse the repository at this point in the history
- ~Update cosmos-sdk ref `e1b8b82c712b491ab95d4a605e8432b9df310032`~
- ~Update cometbls ref `5b33e3460932083218073f498bc9a15d68e17629`~
- Apply fix from cosmos/cosmos-sdk#18994 to
`uniond/cmd/uniond/cmd/root.go`

**Scope updated**: only apply root.go fix. Other changes to be handled
in #1199
  • Loading branch information
PoisonPhang authored Jan 25, 2024
2 parents b00ddc3 + 83d55b8 commit 451b1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uniond/cmd/uniond/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func NewRootCmd() (*cobra.Command, appparams.EncodingConfig) {
cmd.SetOut(cmd.OutOrStdout())
cmd.SetErr(cmd.ErrOrStderr())

initClientCtx = initClientCtx.WithCmdContext(cmd.Context())
initClientCtx = initClientCtx.WithCmdContext(cmd.Context()).WithViper("")

initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
if err != nil {
Expand Down

0 comments on commit 451b1f5

Please sign in to comment.