substrate icon indicating copy to clipboard operation
substrate copied to clipboard

mutate_exists for StorageValue with ValueQuery

Open xlc opened this issue 3 years ago • 2 comments

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.

xlc avatar Jan 13 '23 02:01 xlc

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?

bkchr avatar Jan 13 '23 10:01 bkchr

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

xlc avatar Jan 13 '23 20:01 xlc