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

Commit 6f21580

Browse files
authored
fix(cosmoscmd): home flag parsing in sdk v0.44.3 (#16)
* fix(cosmoscmd): home flag parsing in sdk v0.44.3 * bump ibc version
1 parent ca8feea commit 6f21580

File tree

3 files changed

+320
-34
lines changed

3 files changed

+320
-34
lines changed

cosmoscmd/root.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ func NewRootCmd(
136136
Use: appName + "d",
137137
Short: "Stargate CosmosHub App",
138138
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
139-
initClientCtx = client.ReadHomeFlag(initClientCtx, cmd)
140-
141-
initClientCtx, err := config.ReadFromClientConfig(initClientCtx)
139+
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
140+
if err != nil {
141+
return err
142+
}
143+
initClientCtx, err = config.ReadFromClientConfig(initClientCtx)
142144
if err != nil {
143145
return err
144146
}

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ module github.com/tendermint/spm
33
go 1.16
44

55
require (
6-
github.com/cosmos/cosmos-sdk v0.44.0
7-
github.com/cosmos/ibc-go v1.2.0
6+
github.com/cosmos/cosmos-sdk v0.44.3
7+
github.com/cosmos/ibc-go v1.2.2
88
github.com/google/gofuzz v1.2.0 // indirect
9-
github.com/kr/text v0.2.0 // indirect
109
github.com/spf13/cast v1.3.1
11-
github.com/spf13/cobra v1.1.3
10+
github.com/spf13/cobra v1.2.1
1211
github.com/spf13/pflag v1.0.5
1312
github.com/stretchr/testify v1.7.0
14-
github.com/tendermint/tendermint v0.34.13
13+
github.com/tendermint/tendermint v0.34.14
1514
github.com/tendermint/tm-db v0.6.4
1615
)
1716

0 commit comments

Comments
 (0)