@@ -27,6 +27,7 @@ import (
2727 banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
2828 consensusparamkeeper "github.com/cosmos/cosmos-sdk/x/consensus/keeper"
2929 consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"
30+ crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
3031 crisistypes "github.com/cosmos/cosmos-sdk/x/crisis/types"
3132 distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
3233 distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
@@ -98,7 +99,8 @@ type AppKeepers struct {
9899 Distr distrkeeper.Keeper
99100 Gov * govkeeper.Keeper
100101 Upgrade * upgradekeeper.Keeper
101- Params paramskeeper.Keeper //nolint: staticcheck
102+ Crisis * crisiskeeper.Keeper //nolint: staticcheck
103+ Params paramskeeper.Keeper //nolint: staticcheck
102104 ConsensusParams * consensusparamkeeper.Keeper
103105 IBC * ibckeeper.Keeper
104106 Evidence * evidencekeeper.Keeper
@@ -195,7 +197,7 @@ func (app *App) InitSpecialKeepers(
195197 cdc codec.Codec ,
196198 legacyAmino * codec.LegacyAmino ,
197199 bApp * baseapp.BaseApp ,
198- _ uint ,
200+ invCheckPeriod uint ,
199201 skipUpgradeHeights map [int64 ]bool ,
200202 homePath string ) {
201203
@@ -236,14 +238,14 @@ func (app *App) InitSpecialKeepers(
236238 // any further modules from creating scoped sub-keepers.
237239 app .Keepers .Cosmos .Cap .Seal ()
238240
239- // app.Keepers.Cosmos.Crisis = crisiskeeper.NewKeeper(
240- // cdc, runtime.NewKVStoreService(app.keys[crisistypes.StoreKey]),
241- // invCheckPeriod,
242- // app.Keepers.Cosmos.Bank,
243- // authtypes.FeeCollectorName,
244- // authtypes.NewModuleAddress(govtypes.ModuleName).String(),
245- // addresscodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
246- // )
241+ app .Keepers .Cosmos .Crisis = crisiskeeper .NewKeeper ( //nolint: staticcheck
242+ cdc , runtime .NewKVStoreService (app .keys [crisistypes .StoreKey ]),
243+ invCheckPeriod ,
244+ app .Keepers .Cosmos .Bank ,
245+ authtypes .FeeCollectorName ,
246+ authtypes .NewModuleAddress (govtypes .ModuleName ).String (),
247+ addresscodec .NewBech32Codec (sdk .GetConfig ().GetBech32AccountAddrPrefix ()),
248+ )
247249
248250 app .Keepers .Cosmos .Upgrade = upgradekeeper .NewKeeper (
249251 skipUpgradeHeights ,
@@ -574,14 +576,14 @@ func FindStructField[C any](obj interface{}, fieldName string) (C, error) {
574576
575577 field := rValue .Elem ().FieldByName (fieldName )
576578 if ! field .IsValid () {
577- return * new (C ), fmt .Errorf ("interface `%s` does not have the field `%s`" , // nolint: goerr113
579+ return * new (C ), fmt .Errorf ("interface `%s` does not have the field `%s`" ,
578580 rValue .Type (),
579581 fieldName )
580582 }
581583
582584 res , valid := field .Interface ().(C )
583585 if ! valid {
584- return * new (C ), fmt .Errorf ( // nolint: goerr113
586+ return * new (C ), fmt .Errorf (
585587 "object's `%s` expected type `%s` does not match actual `%s`" ,
586588 fieldName ,
587589 reflect .TypeOf (* new (C )), field .Type ().String ())
0 commit comments