fix(client,server): consistently set env prefix between client/server (#18345)

This commit is contained in:
Julien Robert
2023-11-03 09:58:26 +00:00
committed by GitHub
parent c664daaf55
commit 9e91c7b419
7 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func NewRootCmd() *cobra.Command {
WithValidatorAddressCodec(addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix())).
WithConsensusAddressCodec(addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix())).
WithHomeDir(simapp.DefaultNodeHome).
WithViper("") // In simapp, we don't use any prefix for env variables.
WithViper("") // uses by default the binary name as prefix
rootCmd := &cobra.Command{
Use: "simd",
+1 -1
View File
@@ -116,7 +116,7 @@ func ProvideClientContext(
WithValidatorAddressCodec(validatorAddressCodec).
WithConsensusAddressCodec(consensusAddressCodec).
WithHomeDir(simapp.DefaultNodeHome).
WithViper("") // In simapp, we don't use any prefix for env variables.
WithViper("") // uses by default the binary name as prefix
// Read the config to overwrite the default values with the values from the config file
customClientTemplate, customClientConfig := initClientConfig()