From 4ebbb886bfb1538187a9008598d8c797d99a5f08 Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Sat, 10 Aug 2024 10:18:21 +0800 Subject: [PATCH] add conuncil back --- app/app.go | 4 ++++ x/council/v1/module.go | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/app.go b/app/app.go index e0e1a8f1..de7cf98a 100644 --- a/app/app.go +++ b/app/app.go @@ -686,6 +686,7 @@ func NewApp( // nil InflationCalculationFn, use SDK's default inflation function mint.NewAppModule(appCodec, app.mintKeeper, app.accountKeeper, nil, mintSubspace), precisebank.NewAppModule(app.precisebankKeeper, app.bankKeeper, app.accountKeeper), + council.NewAppModule(app.CouncilKeeper), ibcwasm.NewAppModule(app.ibcWasmClientKeeper), dasigners.NewAppModule(app.dasignersKeeper, *app.stakingKeeper), ) @@ -729,6 +730,7 @@ func NewApp( paramstypes.ModuleName, authz.ModuleName, evmutiltypes.ModuleName, + counciltypes.ModuleName, consensusparamtypes.ModuleName, packetforwardtypes.ModuleName, precisebanktypes.ModuleName, @@ -765,6 +767,7 @@ func NewApp( authz.ModuleName, evmutiltypes.ModuleName, minttypes.ModuleName, + counciltypes.ModuleName, consensusparamtypes.ModuleName, packetforwardtypes.ModuleName, precisebanktypes.ModuleName, @@ -799,6 +802,7 @@ func NewApp( paramstypes.ModuleName, upgradetypes.ModuleName, validatorvestingtypes.ModuleName, + counciltypes.ModuleName, consensusparamtypes.ModuleName, packetforwardtypes.ModuleName, precisebanktypes.ModuleName, // Must be run after x/bank to verify reserve balance diff --git a/x/council/v1/module.go b/x/council/v1/module.go index cb970fb4..a2ad8e87 100644 --- a/x/council/v1/module.go +++ b/x/council/v1/module.go @@ -12,7 +12,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" - stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" "github.com/gorilla/mux" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/spf13/cobra" @@ -97,18 +96,18 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { type AppModule struct { AppModuleBasic keeper keeper.Keeper - sk stakingkeeper.Keeper + // sk stakingkeeper.Keeper } // NewAppModule creates a new AppModule Object func NewAppModule( k keeper.Keeper, - sk stakingkeeper.Keeper, + // sk stakingkeeper.Keeper, ) AppModule { return AppModule{ AppModuleBasic: AppModuleBasic{}, keeper: k, - sk: sk, + // sk: sk, } }