From dfa8be410e0432977a50b067e561dca1bdc36292 Mon Sep 17 00:00:00 2001 From: DedicatedDev Date: Thu, 21 Mar 2024 19:49:50 +0200 Subject: [PATCH] chore: add purning command --- cmd/sided/cmd/root.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/sided/cmd/root.go b/cmd/sided/cmd/root.go index 695ad3f1..e4074da9 100644 --- a/cmd/sided/cmd/root.go +++ b/cmd/sided/cmd/root.go @@ -19,6 +19,7 @@ import ( "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/client/keys" + "github.com/cosmos/cosmos-sdk/client/pruning" "github.com/cosmos/cosmos-sdk/client/rpc" "github.com/cosmos/cosmos-sdk/server" serverconfig "github.com/cosmos/cosmos-sdk/server/config" @@ -39,7 +40,6 @@ import ( "github.com/spf13/pflag" // this line is used by starport scaffolding # root/moduleImport - "github.com/sideprotocol/side/app" appparams "github.com/sideprotocol/side/app/params" ) @@ -108,6 +108,9 @@ func initRootCmd( ) { // Set config initSDKConfig() + a := appCreator{ + encodingConfig, + } gentxModule := app.ModuleBasics[genutiltypes.ModuleName].(genutil.AppModuleBasic) rootCmd.AddCommand( @@ -125,13 +128,10 @@ func initRootCmd( tmcli.NewCompletionCmd(rootCmd, true), debug.Cmd(), config.Cmd(), + pruning.PruningCmd(a.newApp), // this line is used by starport scaffolding # root/commands ) - a := appCreator{ - encodingConfig, - } - // add server commands server.AddCommands( rootCmd,