Skip to content

Introduce BurnableERC721Token contract #1126

@dougiebuckets

Description

@dougiebuckets

🎉 Description

Does it make sense for us to introduce a BurnableERC721Token Contract similar to the BurnableToken contract we have for ERC20s? For ERC20 we simply subtract tokens from the balances mapping in StandardToken whereas for the proposed BurnableERC721Token contract we would need to ensure that the specific token ID or index is eliminated. Pulling from this article the steps might look like:

  • First, we clearApproval(), then remove the token from ownership via removeTokenFrom() and use the Transfer event to alert this change on the front end.

  • Next, we eliminate the metadata associated with that token by deleting what is mapped to that particular token index.

  • Lastly, much like removing a token from ownership, we rearrange our allTokens array so that we replace the _tokenId index with the last token in the array.

  • 📈 This is a feature request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contractsSmart contract code.featureNew contracts, functions, or helpers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions