Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
fix(cosmoscmd): home flag parsing in sdk v0.44.3 (#16)
Browse files Browse the repository at this point in the history
* fix(cosmoscmd): home flag parsing in sdk v0.44.3

* bump ibc version
  • Loading branch information
jhernandezb authored Oct 26, 2021
1 parent ca8feea commit 6f21580
Show file tree
Hide file tree
Showing 3 changed files with 320 additions and 34 deletions.
8 changes: 5 additions & 3 deletions cosmoscmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,11 @@ func NewRootCmd(
Use: appName + "d",
Short: "Stargate CosmosHub App",
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
initClientCtx = client.ReadHomeFlag(initClientCtx, cmd)

initClientCtx, err := config.ReadFromClientConfig(initClientCtx)
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
if err != nil {
return err
}
initClientCtx, err = config.ReadFromClientConfig(initClientCtx)
if err != nil {
return err
}
Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ module github.com/tendermint/spm
go 1.16

require (
github.com/cosmos/cosmos-sdk v0.44.0
github.com/cosmos/ibc-go v1.2.0
github.com/cosmos/cosmos-sdk v0.44.3
github.com/cosmos/ibc-go v1.2.2
github.com/google/gofuzz v1.2.0 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/spf13/cast v1.3.1
github.com/spf13/cobra v1.1.3
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
github.com/tendermint/tendermint v0.34.13
github.com/tendermint/tendermint v0.34.14
github.com/tendermint/tm-db v0.6.4
)

Expand Down
Loading

0 comments on commit 6f21580

Please sign in to comment.