Unset home and keyring dir from depinject client config
All checks were successful
Build / build (pull_request) Successful in 1m50s
Lint / Run golangci-lint (pull_request) Successful in 4m22s
E2E Tests / test-e2e (pull_request) Successful in 2m46s
Integration Tests / test-integration (pull_request) Successful in 1m45s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m47s
SDK Tests / sdk_tests (pull_request) Successful in 7m46s
Unit Tests / test-unit (pull_request) Successful in 1m50s
All checks were successful
Build / build (pull_request) Successful in 1m50s
Lint / Run golangci-lint (pull_request) Successful in 4m22s
E2E Tests / test-e2e (pull_request) Successful in 2m46s
Integration Tests / test-integration (pull_request) Successful in 1m45s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m47s
SDK Tests / sdk_tests (pull_request) Successful in 7m46s
Unit Tests / test-unit (pull_request) Successful in 1m50s
This commit is contained in:
parent
9dc84ef943
commit
fd395902d9
@ -134,14 +134,17 @@ func ProvideClientContext(
|
|||||||
WithLegacyAmino(legacyAmino).
|
WithLegacyAmino(legacyAmino).
|
||||||
WithInput(os.Stdin).
|
WithInput(os.Stdin).
|
||||||
WithAccountRetriever(types.AccountRetriever{}).
|
WithAccountRetriever(types.AccountRetriever{}).
|
||||||
// Workaround: Avoid providing DefaultNodeHome to depinject as it is given precedence over the one passed using --home flag in some CLI commands
|
WithHomeDir(app.DefaultNodeHome).
|
||||||
// TODO: Implement proper fix
|
|
||||||
// WithHomeDir(app.DefaultNodeHome).
|
|
||||||
WithViper(EnvPrefix) // env variable prefix
|
WithViper(EnvPrefix) // env variable prefix
|
||||||
|
|
||||||
// Read the config again to overwrite the default values with the values from the config file
|
// Read the config again to overwrite the default values with the values from the config file
|
||||||
clientCtx, _ = config.ReadFromClientConfig(clientCtx)
|
clientCtx, _ = config.ReadFromClientConfig(clientCtx)
|
||||||
|
|
||||||
|
// Workaround: Unset clientCtx.HomeDir and clientCtx.KeyringDir from depinject clientCtx as they are given precedence over the CLI args (--home flag) in some commands
|
||||||
|
// TODO: Implement proper fix
|
||||||
|
clientCtx.HomeDir = ""
|
||||||
|
clientCtx.KeyringDir = ""
|
||||||
|
|
||||||
return clientCtx
|
return clientCtx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user