Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

mutate_exists for StorageValue with ValueQuery #13133

Closed
xlc opened this issue Jan 13, 2023 · 2 comments · Fixed by #13245
Closed

mutate_exists for StorageValue with ValueQuery #13133

xlc opened this issue Jan 13, 2023 · 2 comments · Fixed by #13245

Comments

@xlc
Copy link
Contributor

xlc commented Jan 13, 2023

I use ValueQuery so it creates a default value for empty key, which is handy. But I still want to delete it with mutate_exists.

@bkchr
Copy link
Member

bkchr commented Jan 13, 2023

mutate_exists doesn't exist for StorageValue? Do you mean StorageMap? And what is the issue? The value is not deleted when you set the mutated value to None?

@xlc
Copy link
Contributor Author

xlc commented Jan 13, 2023

Sorry for not be clear. I am requesting add mutate_exists for StorageValue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants