Skip to content

Commit 43b9cdb

Browse files
committed
fix: let txCommand to accept tempApp's BasicManager for repairing the transaction commands
1 parent 1bdd74e commit 43b9cdb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/lokad/root.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import (
5151
"github.com/cosmos/cosmos-sdk/client/snapshot"
5252
simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"
5353
sdk "github.com/cosmos/cosmos-sdk/types"
54+
"github.com/cosmos/cosmos-sdk/types/module"
5455
sdktestutil "github.com/cosmos/cosmos-sdk/types/module/testutil"
5556
authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli"
5657
"github.com/cosmos/cosmos-sdk/x/auth/types"
@@ -184,7 +185,7 @@ func NewRootCmd() (*cobra.Command, sdktestutil.TestEncodingConfig) {
184185
rootCmd.AddCommand(
185186
sdkserver.StatusCommand(),
186187
queryCommand(),
187-
txCommand(),
188+
txCommand(tempApp.BasicModuleManager),
188189
evmosclient.KeyCommands(app.DefaultNodeHome),
189190
)
190191
rootCmd, err = srvflags.AddTxFlags(rootCmd)
@@ -234,7 +235,7 @@ func queryCommand() *cobra.Command {
234235
return cmd
235236
}
236237

237-
func txCommand() *cobra.Command {
238+
func txCommand(mbm module.BasicManager) *cobra.Command {
238239
cmd := &cobra.Command{
239240
Use: "tx",
240241
Short: "Transactions subcommands",
@@ -255,7 +256,7 @@ func txCommand() *cobra.Command {
255256
authcmd.GetSimulateCmd(),
256257
)
257258

258-
app.ModuleBasics.AddTxCommands(cmd)
259+
mbm.AddTxCommands(cmd)
259260
cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID")
260261

261262
return cmd

0 commit comments

Comments
 (0)