Closed PaulRBerg closed 1 year ago
How should the implementation look like?
transfer
or transferFrom
are calledburn
and mint
functions are calledBoth versions require the implementation of _afterTokenTransfer
hook. However, for the first version we would need to do similar as we did for _beforeTokenTransfer
(checking for address(0)
):
Option 2, but note that transfer
does not exist in ERC-721. Only transferFrom
. I think you meant to say _transfer
(notice the underscore)?
Yes, the implementation would go in _afterTokenTransfer
. No need to check for the zero address in this case.
The goal is to refresh the NFT SVG on platforms like OpenSea whenever the NFT is transferred around.