diff --git a/cmd/onomyd/cmd/eth_keys.go b/cmd/onomyd/cmd/eth_keys.go index 4eaa13b1..476c385b 100644 --- a/cmd/onomyd/cmd/eth_keys.go +++ b/cmd/onomyd/cmd/eth_keys.go @@ -18,9 +18,9 @@ import ( const flagPassphrase = "passphrase" -// Commands registers a sub-tree of commands to interact with +// AddEthKeysCommands registers a sub-tree of commands to interact with // local private key storage. -func Commands(defaultNodeHome string) *cobra.Command { +func AddEthKeysCommands(defaultNodeHome string) *cobra.Command { cmd := &cobra.Command{ Use: "eth_keys", Short: "Manage your application's ethereum keys", diff --git a/cmd/onomyd/cmd/root.go b/cmd/onomyd/cmd/root.go index 0a304d79..51135062 100644 --- a/cmd/onomyd/cmd/root.go +++ b/cmd/onomyd/cmd/root.go @@ -95,6 +95,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { GenTxCmd(onomy.ModuleBasics, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, onomy.DefaultNodeHome), genutilcli.ValidateGenesisCmd(onomy.ModuleBasics), AddGenesisAccountCmd(onomy.DefaultNodeHome), + AddEthKeysCommands(onomy.DefaultNodeHome), tmcli.NewCompletionCmd(rootCmd, true), debug.Cmd(), ) @@ -107,7 +108,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) { queryCommand(), txCommand(), keys.Commands(onomy.DefaultNodeHome), - Commands(onomy.DefaultNodeHome), + // Commands(onomy.DefaultNodeHome), ) }