Skip to content

Commit

Permalink
fix: use genesis commands from akash sdk
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Oct 24, 2024
1 parent aba6607 commit f071ba4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/akash/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"

cflags "pkg.akt.dev/go/cli/flags"

Expand Down Expand Up @@ -151,7 +150,6 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig params.EncodingConfig) {
cli.TxCmd(),
keys.Commands(home),
genesisCommand(encodingConfig),
genutilcli.InitCmd(app.ModuleBasics(), home),
cmtcli.NewCompletionCmd(rootCmd, true),
debugCmd,
rosettaCmd.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Marshaler),
Expand All @@ -173,7 +171,7 @@ func addModuleInitFlags(startCmd *cobra.Command) {
func genesisCommand(encodingConfig params.EncodingConfig, cmds ...*cobra.Command) *cobra.Command {
home := app.DefaultHome

cmd := genutilcli.GenesisCoreCommand(encodingConfig.TxConfig, app.ModuleBasics(), app.DefaultHome)
cmd := cli.GetGenesisCmd(app.ModuleBasics(), encodingConfig.TxConfig, app.DefaultHome)

for _, subCmd := range cmds {
cmd.AddCommand(subCmd)
Expand Down

0 comments on commit f071ba4

Please sign in to comment.