Skip to content

Commit

Permalink
delete after harkfork (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Mar 14, 2024
1 parent f33ddf3 commit b2ef76b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/storage/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,9 @@ func (k Keeper) doDeleteBucket(ctx sdk.Context, operator sdk.AccAddress, bucketI
store.Delete(types.GetQuotaKey(bucketInfo.Id))
store.Delete(types.GetInternalBucketInfoKey(bucketInfo.Id))
store.Delete(types.GetMigrationBucketKey(bucketInfo.Id))
store.Delete(types.GetLockedObjectCountKey(bucketInfo.Id))

if ctx.IsUpgraded(upgradetypes.Pawnee) {
store.Delete(types.GetLockedObjectCountKey(bucketInfo.Id))
}
err := k.appendResourceIdForGarbageCollection(ctx, resource.RESOURCE_TYPE_BUCKET, bucketInfo.Id)
if err != nil {
return err
Expand Down

0 comments on commit b2ef76b

Please sign in to comment.