Skip to content

Commit b9de0f3

Browse files
committed
fix(simapp): fix default home
1 parent e4fabeb commit b9de0f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

simapp/simd/cmd/root_v2.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func ProvideClientContext(
115115
WithAddressCodec(addressCodec).
116116
WithValidatorAddressCodec(validatorAddressCodec).
117117
WithConsensusAddressCodec(consensusAddressCodec).
118-
WithHomeDir(simapp.DefaultNodeHome).
118+
WithHomeDir(tempDir()).
119119
WithViper("") // uses by default the binary name as prefix
120120

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

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

0 commit comments

Comments
 (0)