diff --git a/app/app.go b/app/app.go index 9b22ccf91..786fe6b48 100644 --- a/app/app.go +++ b/app/app.go @@ -928,18 +928,18 @@ func NewApp( genutiltypes.ModuleName: genutil.NewAppModuleBasic(genutiltypes.DefaultMessageValidator), govtypes.ModuleName: gov.NewAppModuleBasic([]govclient.ProposalHandler{ paramsclient.ProposalHandler, - LegacyProposalHandler, - LegacyCancelProposalHandler, - //upgradeclient.LegacyProposalHandler, - //upgradeclient.LegacyCancelProposalHandler, - govclient.NewProposalHandler(ibcclientclient.NewTxCmd), - //ibcclientclient, - kavadistclient.ProposalHandler, - committeeclient.ProposalHandler, - earnclient.DepositProposalHandler, - earnclient.WithdrawProposalHandler, - communityclient.LendDepositProposalHandler, - communityclient.LendWithdrawProposalHandler, + //LegacyProposalHandler, + //LegacyCancelProposalHandler, + ////upgradeclient.LegacyProposalHandler, + ////upgradeclient.LegacyCancelProposalHandler, + //govclient.NewProposalHandler(ibcclientclient.NewTxCmd), + ////ibcclientclient, + //kavadistclient.ProposalHandler, + //committeeclient.ProposalHandler, + //earnclient.DepositProposalHandler, + //earnclient.WithdrawProposalHandler, + //communityclient.LendDepositProposalHandler, + //communityclient.LendWithdrawProposalHandler, }), ibctm.ModuleName: ibctm.NewAppModule(), }) diff --git a/cmd/kava/cmd/tx.go b/cmd/kava/cmd/tx.go index 1f7454f98..973a82a69 100644 --- a/cmd/kava/cmd/tx.go +++ b/cmd/kava/cmd/tx.go @@ -1,6 +1,8 @@ package cmd import ( + "cosmossdk.io/log" + dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" @@ -12,19 +14,13 @@ import ( func newTxCmd() *cobra.Command { //_, testAddresses := app.GeneratePrivKeyAddressPairs(10) //manual := testAddresses[6:] - //encodingConfig := app.MakeEncodingConfig() //opts := app.DefaultOptions //opts.MempoolEnableAuth = true //opts.MempoolAuthAddresses = manual // - //tempApp := app.NewApp( - // log.NewNopLogger(), - // dbm.NewMemDB(), - // app.DefaultNodeHome, - // nil, - // encodingConfig, - // opts, - //) + + encodingConfig := app.MakeEncodingConfig() + tempApp := app.NewApp(log.NewNopLogger(), dbm.NewMemDB(), app.DefaultNodeHome, nil, encodingConfig, app.DefaultOptions) cmd := &cobra.Command{ Use: "tx", @@ -45,9 +41,9 @@ func newTxCmd() *cobra.Command { authcmd.GetDecodeCommand(), ) - //tempApp.BasicModuleManager.AddTxCommands(cmd) + tempApp.BasicModuleManager.AddTxCommands(cmd) - app.ModuleBasics.AddTxCommands(cmd) + //app.ModuleBasics.AddTxCommands(cmd) cmd.PersistentFlags().String(flags.FlagChainID, "", "The network chain ID") return cmd