Skip to content

Use namespaced storage for state variables when upgradeable #383

Open
@ericglau

Description

@ericglau

From https://wizard.openzeppelin.com/#erc721, enable "Mintable -> Auto Increment Ids" and "Upgradeability". This adds state variable uint256 private _nextTokenId;to the code, and this can be enhanced to use namespaced storage as a best practice for upgradeable contracts.

(This is currently the only state variable added by Wizard, but this should apply for any state variable(s) being added by Wizard when upgradeability is enabled.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions