Skip to content

Commit

Permalink
update init genesis to panic on error
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Sep 12, 2023
1 parent 94419ef commit 4aaf5ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/alloc/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import (
// InitGenesis initializes the capability module's state from a provided genesis
// state.
func InitGenesis(ctx sdk.Context, k keeper.Keeper, genState types.GenesisState) {
k.SetParams(ctx, genState.Params)
err := k.SetParams(ctx, genState.Params)
if err != nil {
panic(err)
}
}

// ExportGenesis returns the capability module's exported genesis.
Expand Down

0 comments on commit 4aaf5ef

Please sign in to comment.