File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package cmd
55import (
66 "os"
77
8+ autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
89 nodeservice "github.com/cosmos/cosmos-sdk/client/grpc/node"
910 "github.com/spf13/cobra"
1011
@@ -85,6 +86,7 @@ func NewRootCmd() *cobra.Command {
8586 initRootCmd (rootCmd , moduleManager )
8687
8788 nodeCmds := nodeservice .NewNodeCommands ()
89+ autoCliOpts .ModuleOptions = make (map [string ]* autocliv1.ModuleOptions )
8890 autoCliOpts .ModuleOptions [nodeCmds .Name ()] = nodeCmds .AutoCLIOptions ()
8991
9092 if err := autoCliOpts .EnhanceRootCommand (rootCmd ); err != nil {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package cmd
33import (
44 "os"
55
6+ autocliv1 "cosmossdk.io/api/cosmos/autocli/v1"
67 "github.com/spf13/cobra"
78
89 "cosmossdk.io/client/v2/autocli"
@@ -84,6 +85,7 @@ func NewRootCmd[T transaction.Tx]() *cobra.Command {
8485 initRootCmd [T ](rootCmd , clientCtx .TxConfig , moduleManager )
8586
8687 nodeCmds := nodeservice .NewNodeCommands ()
88+ autoCliOpts .ModuleOptions = make (map [string ]* autocliv1.ModuleOptions )
8789 autoCliOpts .ModuleOptions [nodeCmds .Name ()] = nodeCmds .AutoCLIOptions ()
8890
8991 if err := autoCliOpts .EnhanceRootCommand (rootCmd ); err != nil {
You can’t perform that action at this time.
0 commit comments