From ba563ac7abcb44d567a2f1e263e37af08c992169 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 22 Jan 2024 23:11:34 -0600 Subject: [PATCH] Wrong flag. --- client/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }