Skip to content

Commit

Permalink
fixup! chore(x/vstorage): add remove entries method
Browse files Browse the repository at this point in the history
clarify deletion of prefix
  • Loading branch information
mhofman committed Aug 14, 2023
1 parent d289678 commit 1e7b20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion golang/cosmos/x/vstorage/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ func (k Keeper) RemoveEntriesWithPrefix(ctx sdk.Context, pathPrefix string) {
store.Delete(key)
}

// Update the prefix entry itself, and all ancestors if necessary
// Update the prefix entry itself with SetStorage, which will effectively
// delete it and all necessary ancestors.
k.SetStorage(ctx, agoric.NewKVEntryWithNoValue(pathPrefix))
}

Expand Down

0 comments on commit 1e7b20f

Please sign in to comment.