Skip to content

Commit

Permalink
fix(simapp): fix default home
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Feb 9, 2024
1 parent e4fabeb commit b9de0f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simapp/simd/cmd/root_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func ProvideClientContext(
WithAddressCodec(addressCodec).
WithValidatorAddressCodec(validatorAddressCodec).
WithConsensusAddressCodec(consensusAddressCodec).
WithHomeDir(simapp.DefaultNodeHome).
WithHomeDir(tempDir()).
WithViper("") // uses by default the binary name as prefix

// Read the config to overwrite the default values with the values from the config file
Expand All @@ -124,6 +124,7 @@ func ProvideClientContext(
if err != nil {
panic(err)
}
clientCtx.HomeDir = ""

// textual is enabled by default, we need to re-create the tx config grpc instead of bank keeper.
txConfigOpts.TextualCoinMetadataQueryFn = authtxconfig.NewGRPCCoinMetadataQueryFn(clientCtx)
Expand Down

0 comments on commit b9de0f3

Please sign in to comment.