Skip to content

Commit

Permalink
fix: sync failed from genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Mar 7, 2024
1 parent ef1f7f0 commit fc25bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func (k Keeper) IsUpgraded(ctx sdk.Context, name string) bool {

// InitUpgraded execute the upgrade initializer that the upgrade is already applied.
func (k Keeper) InitUpgraded(ctx sdk.Context) error {
iter := storetypes.KVStorePrefixIterator(ctx.KVStore(k.storeKey), []byte{types.DoneByte})
iter := storetypes.KVStorePrefixIterator(ctx.KVStoreWithZeroRead(k.storeKey), []byte{types.DoneByte})
defer iter.Close()

for ; iter.Valid(); iter.Next() {
Expand Down

0 comments on commit fc25bc2

Please sign in to comment.