You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Experiencing problems? Have you tried our Stack Exchange first?
This is not a support question.
Description of bug
Currently, when doing CountedMap::set it does not update the count, either on value removal or insertion. It should be consistent with StorageMap::set that simply delegates to either StorageMap::insert or StorageMap::remove.
We should make sure CountedMap::set delegates to CountedMap::insert or CountedMap::remove.
Steps to reproduce
Create a CountedMap, try to set a value and then check CountedMap::count() to verify that it returns 0.
The text was updated successfully, but these errors were encountered:
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Currently, when doing
CountedMap::set
it does not update the count, either on value removal or insertion. It should be consistent withStorageMap::set
that simply delegates to eitherStorageMap::insert
orStorageMap::remove
.We should make sure
CountedMap::set
delegates toCountedMap::insert
orCountedMap::remove
.Steps to reproduce
Create a
CountedMap
, try toset
a value and then checkCountedMap::count()
to verify that it returns 0.The text was updated successfully, but these errors were encountered: