diff --git a/client/config.go b/client/config.go index 05b5b272..78e0fb98 100644 --- a/client/config.go +++ b/client/config.go @@ -37,7 +37,7 @@ func InitConfig(cmd *cobra.Command) error { } } - if err := viper.BindPFlag(flags.FlagChainID, cmd.PersistentFlags().Lookup(flags.FlagChainID)); err != nil { + if err := viper.BindPFlag(flags.FlagChainID, cmd.Flags().Lookup(flags.FlagChainID)); err != nil { return err }