Skip to content

Commit

Permalink
Merge branch 'main_v0.2.x' into main_v0.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
askolesov committed Dec 21, 2021
2 parents 1be5b62 + 358a104 commit 2fe4e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2fe4e9c

Please sign in to comment.