fix(client,server): consistently set env prefix between client/server (#18345)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user