chore: params cleanup (#12480)

Adds missing error checks to the modules that migrated away from `x/params`
This commit is contained in:
Aleksandr Bezobchuk
2022-07-08 06:38:18 +00:00
committed by GitHub
parent 36ffd7a6da
commit 69d8fa2baf
5 changed files with 28 additions and 25 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ import (
// InitGenesis new mint genesis
func (keeper Keeper) InitGenesis(ctx sdk.Context, ak types.AccountKeeper, data *types.GenesisState) {
keeper.SetMinter(ctx, data.Minter)
keeper.SetParams(ctx, data.Params)
if err := keeper.SetParams(ctx, data.Params); err != nil {
panic(err)
}
ak.GetModuleAccount(ctx, types.ModuleName)
}