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.

When to inc_ref / dec_ref? #5255

@xlc

Description

@xlc

There is an introduction of inc_ref / dec_ref in frame_system recently.

It is been called by some of the substrate pallets (e.g. democracy, recovery), but not some others (e.g. identity, society).

There isn't much documentations about when a custom pallet should use inc/dec the reference of an account.

Any quick guidance? and some extensive documentations followup?

(Is this kind of question belong to here or substrate-developer-hub?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    I6-documentationDocumentation needs fixing, improving or augmenting.Z7-questionIssue is a question. Closer should answer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions