Skip to content

Commit

Permalink
Merge pull request #257 from cheqd/bugfix/state-export
Browse files Browse the repository at this point in the history
Fix state export
  • Loading branch information
askolesov authored Dec 21, 2021
2 parents 336474c + 473118e commit 358a104
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 358a104

Please sign in to comment.