Fix root command setup to respect home flag
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m47s
Build / build (pull_request) Successful in 2m50s
E2E Tests / test-e2e (pull_request) Successful in 4m5s
Lint / Run golangci-lint (pull_request) Successful in 5m30s
Unit Tests / test-unit (pull_request) Successful in 1m59s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m27s
SDK Tests / sdk_tests (pull_request) Successful in 8m28s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m53s
All checks were successful
Integration Tests / test-integration (pull_request) Successful in 2m47s
Build / build (pull_request) Successful in 2m50s
E2E Tests / test-e2e (pull_request) Successful in 4m5s
Lint / Run golangci-lint (pull_request) Successful in 5m30s
Unit Tests / test-unit (pull_request) Successful in 1m59s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 7m27s
SDK Tests / sdk_tests (pull_request) Successful in 8m28s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m53s
This commit is contained in:
parent
e63f51cacd
commit
d19e833d7f
@ -68,7 +68,7 @@ func NewRootCmd() *cobra.Command {
|
|||||||
cmd.SetOut(cmd.OutOrStdout())
|
cmd.SetOut(cmd.OutOrStdout())
|
||||||
cmd.SetErr(cmd.ErrOrStderr())
|
cmd.SetErr(cmd.ErrOrStderr())
|
||||||
|
|
||||||
clientCtx = clientCtx.WithCmdContext(cmd.Context())
|
clientCtx = clientCtx.WithCmdContext(cmd.Context()).WithViper(EnvPrefix)
|
||||||
clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags())
|
clientCtx, err := client.ReadPersistentCommandFlags(clientCtx, cmd.Flags())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -96,10 +96,6 @@ func NewRootCmd() *cobra.Command {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// overwrite the minimum gas price from the app configuration
|
// overwrite the minimum gas price from the app configuration
|
||||||
srvCfg := serverconfig.DefaultConfig()
|
srvCfg := serverconfig.DefaultConfig()
|
||||||
srvCfg.MinGasPrices = "0photon"
|
srvCfg.MinGasPrices = "0photon"
|
||||||
|
Loading…
Reference in New Issue
Block a user