Skip to content

Commit de07432

Browse files
amaury1093robert-zarembafdymyljaaaroncmergify[bot]
authored
Refactor store keys for variable-length addresses (cosmos#8363)
* Change account store key in x/bank * Fix pagination test * Fix merge master * Fix staking keys.go * Use bech32 in val state change map * Fix sortNoLongerBonded * Use length-prefix function * Use length prefix function * Fix test accountStore * Fix ExamplePaginate * Fix staking keys * Use shorter balances prefix * Do slashing keys * Fix gov keys * Fix x/gov tests * Fix x/distrib * Address reviews * add change log entry * Add changelog * Fix failing tests * Fix sim tests * fix after-export sim * Fix lint * Address review * Fix x/authz * Fix global config in test * Update x/staking/keeper/val_state_change.go Co-authored-by: Robert Zaremba <robert@zaremba.ch> * Address comments * Fix comments * Address review * Fix authz test * Update comment * Rename to LengthPrefixedAddressStoreKey * Use variable * Rename function * Fix test build * chore: update rosetta CI (cosmos#8453) * Rename again * Rename yet again * Update feegrant keys * Add function to create prefix Co-authored-by: Robert Zaremba <robert@zaremba.ch> Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Aaron Craelius <aaron@regen.network> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent f366565 commit de07432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (app *SimApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs []
157157
counter := int16(0)
158158

159159
for ; iter.Valid(); iter.Next() {
160-
addr := sdk.ValAddress(iter.Key()[1:])
160+
addr := sdk.ValAddress(stakingtypes.AddressFromValidatorsKey(iter.Key()))
161161
validator, found := app.StakingKeeper.GetValidator(ctx, addr)
162162
if !found {
163163
panic("expected validator, not found")

0 commit comments

Comments
 (0)