Skip to content

Commit de41079

Browse files
committed
remove dependency inject catch and fix missing hedgehog arg in viper.
1 parent d746d76 commit de41079

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

cmd/paxd/cmd/root.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func NewRootCmd() *cobra.Command {
4545
clientCtx client.Context
4646
)
4747

48+
//if err := depinject.InjectDebug(
49+
//depinject.FileVisualizer("/home/evan/work/cosmos-daemon/output.dot"),
4850
if err := depinject.Inject(
4951
depinject.Configs(
5052
app.AppConfig(),
@@ -117,6 +119,12 @@ func NewRootCmd() *cobra.Command {
117119
},
118120
}
119121

122+
// param for the hedgehog url to be passed at startup
123+
rootCmd.PersistentFlags().StringVar(&HedgehogUrl, "hedgehog", "", "Pass the Hedgehog URL")
124+
//fmt.Println("Value of --hedgehog flag:", HedgehogUrl)
125+
126+
viper.BindPFlag("hedgehog.hedgehog_url", rootCmd.PersistentFlags().Lookup("hedgehog"))
127+
120128
initRootCmd(rootCmd, clientCtx.TxConfig, clientCtx.InterfaceRegistry, clientCtx.Codec, moduleBasicManager)
121129

122130
overwriteFlagDefaults(rootCmd, map[string]string{

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ require (
257257
sigs.k8s.io/yaml v1.4.0 // indirect
258258
)
259259

260-
// replace github.com/unigrid-project/cosmos-ugdmint => /home/evan/work/cosmos-sdk-ugdmint
260+
//replace github.com/unigrid-project/cosmos-ugdmint => /home/evan/work/cosmos-sdk-ugdmint
261261

262262
//replace github.com/unigrid-project/cosmos-unigrid-hedgehog-vesting => /home/evan/work/cosmos-sdk-unigrid-hedgehog-vesting
263263

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,6 @@ github.com/unigrid-project/cosmos-common v0.0.8 h1:u7b7NfwKHXbvXj3QGEKaghHrB1Toj
11011101
github.com/unigrid-project/cosmos-common v0.0.8/go.mod h1:1yKYVwjFSztn3PpscSB02WKYUMkFiRpet2qlYB8OBio=
11021102
github.com/unigrid-project/cosmos-gridnode v0.0.11 h1:O+N2VvP4YFRLRUMT6+QpqdbW2bTNbr+Aewm/EanvQ88=
11031103
github.com/unigrid-project/cosmos-gridnode v0.0.11/go.mod h1:gy7aTp5EBBmrn1IusMpsbUMnaS+KuyyjpFfhZ+31lQw=
1104-
github.com/unigrid-project/cosmos-ugdmint v0.0.82 h1:fK0v6M/3dVayXloEblEQxLoWPz3GLXnc5SmJyKHCkAY=
1105-
github.com/unigrid-project/cosmos-ugdmint v0.0.82/go.mod h1:7lWvASI4+5PA4cMSRsF6B9K5ptT5fxkQKGT9jElgbe0=
11061104
github.com/unigrid-project/cosmos-unigrid-hedgehog-vesting v0.0.57 h1:f3CNYz3aOXBkYM+p+sDoFyNEAte0MoEqmRYKr1Ys7jA=
11071105
github.com/unigrid-project/cosmos-unigrid-hedgehog-vesting v0.0.57/go.mod h1:p5/Va4MgvuIyrkOio+zYppNFNZk2I9evS9DnGNdMHcs=
11081106
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=

0 commit comments

Comments
 (0)