diff --git a/app/export.go b/app/export.go index a744e5496..16bbebd71 100644 --- a/app/export.go +++ b/app/export.go @@ -150,7 +150,8 @@ func (app *App) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []str counter := int16(0) for ; iter.Valid(); iter.Next() { - addr := sdk.ValAddress(iter.Key()[1:]) + // The first byte is used for collection prefix, the second - for addr length + addr := sdk.ValAddress(iter.Key()[2:]) validator, found := app.StakingKeeper.GetValidator(ctx, addr) if !found { panic("expected validator, not found")