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

CountedMap isn't updating the count on set. #13212

@ruseinov

Description

@ruseinov

Is there an existing issue?

  • I have searched the existing issues

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions