Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit dfa8be4

Browse files
committed
chore: add purning command
1 parent abc51da commit dfa8be4

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/sided/cmd/root.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/cosmos/cosmos-sdk/client/debug"
2020
"github.com/cosmos/cosmos-sdk/client/flags"
2121
"github.com/cosmos/cosmos-sdk/client/keys"
22+
"github.com/cosmos/cosmos-sdk/client/pruning"
2223
"github.com/cosmos/cosmos-sdk/client/rpc"
2324
"github.com/cosmos/cosmos-sdk/server"
2425
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
@@ -39,7 +40,6 @@ import (
3940
"github.com/spf13/pflag"
4041

4142
// this line is used by starport scaffolding # root/moduleImport
42-
4343
"github.com/sideprotocol/side/app"
4444
appparams "github.com/sideprotocol/side/app/params"
4545
)
@@ -108,6 +108,9 @@ func initRootCmd(
108108
) {
109109
// Set config
110110
initSDKConfig()
111+
a := appCreator{
112+
encodingConfig,
113+
}
111114

112115
gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic)
113116
rootCmd.AddCommand(
@@ -125,13 +128,10 @@ func initRootCmd(
125128
tmcli.NewCompletionCmd(rootCmd, true),
126129
debug.Cmd(),
127130
config.Cmd(),
131+
pruning.PruningCmd(a.newApp),
128132
// this line is used by starport scaffolding # root/commands
129133
)
130134

131-
a := appCreator{
132-
encodingConfig,
133-
}
134-
135135
// add server commands
136136
server.AddCommands(
137137
rootCmd,

0 commit comments

Comments
 (0)