diff --git a/cmd/ethermintd/root.go b/cmd/ethermintd/root.go index b87fb55371..41a54df4db 100644 --- a/cmd/ethermintd/root.go +++ b/cmd/ethermintd/root.go @@ -67,9 +67,12 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { cmd.SetOut(cmd.OutOrStdout()) cmd.SetErr(cmd.ErrOrStderr()) - initClientCtx = client.ReadHomeFlag(initClientCtx, cmd) + initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags()) + if err != nil { + return err + } - initClientCtx, err := config.ReadFromClientConfig(initClientCtx) + initClientCtx, err = config.ReadFromClientConfig(initClientCtx) if err != nil { return err } @@ -78,6 +81,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { return err } + // FIXME: replace AttoPhoton with bond denom customAppTemplate, customAppConfig := servercfg.AppConfig(ethermint.AttoPhoton) return sdkserver.InterceptConfigsPreRunHandler(cmd, customAppTemplate, customAppConfig)