Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[next-v5.0] Refactor ERC721 _transfer function to support minting and burning #3636

Closed

Conversation

Amxx
Copy link
Collaborator

@Amxx Amxx commented Aug 19, 2022

Part of #3535

Also remove before and after transfer hooks

Replace #3635

PR Checklist

  • Tests
  • Documentation
  • Changelog entry

@frangio
Copy link
Contributor

frangio commented Aug 25, 2022

We should do the same with ERC20 and 1155.

@Amxx Amxx force-pushed the refactor/erc721/mint-burn-transfer branch from c3514e6 to 9bd2053 Compare August 25, 2022 12:32
@Amxx
Copy link
Collaborator Author

Amxx commented Aug 25, 2022

We should do the same with ERC20 and 1155.

yes, but in other PRs :)

address to,
uint256 tokenId
) internal virtual override {
super._transfer(from, to, tokenId);

if (bytes(_tokenURIs[tokenId]).length != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should only do this if to is 0!

@frangio
Copy link
Contributor

frangio commented Dec 28, 2022

Superceded by #3893.

@frangio frangio closed this Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants