Skip to content

Commit

Permalink
fix: genesis initialization, collections map
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Mar 25, 2024
1 parent 167ecf6 commit dcc673f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x/service/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ import (

// InitGenesis initializes the middlewares state from a specified GenesisState.
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState) {
var err error
for _, record := range state.Records {
err = k.RecordsMapping.Set(ctx, record.Origin, record)
if err != nil {
panic(err)
}
k.RecordsMapping.Set(ctx, record.Origin, record)
}
}

Expand Down

0 comments on commit dcc673f

Please sign in to comment.