-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Description
🎉 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.