Skip to content

Commit

Permalink
Handle Err
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Sep 9, 2024
1 parent 91843a7 commit 0ed67cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/staking/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func InitGenesis(
// genesis.json are in block 0.
ctx = ctx.WithBlockHeight(1 - sdk.ValidatorUpdateDelay)

keeper.SetParams(ctx, data.Params)
if err := keeper.SetParams(ctx, data.Params); err != nil {
panic(err)
}
keeper.SetLastTotalPower(ctx, data.LastTotalPower)

for _, validator := range data.Validators {
Expand Down

0 comments on commit 0ed67cc

Please sign in to comment.