From 0ed67ccbda6bf7ff6de1fd9047601bae9322e54f Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Mon, 9 Sep 2024 13:00:55 -0500 Subject: [PATCH] Handle Err --- x/staking/genesis.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/staking/genesis.go b/x/staking/genesis.go index a1bb8497e..5bd3255eb 100644 --- a/x/staking/genesis.go +++ b/x/staking/genesis.go @@ -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 {