Skip to content

Instantly share code, notes, and snippets.

@m9800
Created October 12, 2022 16:15
Show Gist options
  • Save m9800/df263cbafa79f98b33f635c54e1c46cb to your computer and use it in GitHub Desktop.
Save m9800/df263cbafa79f98b33f635c54e1c46cb to your computer and use it in GitHub Desktop.
re-entrancy project
function _safeMint(
       address to,
       uint256 tokenId,
       bytes memory data
   ) internal virtual {
       _mint(to, tokenId);
       require(
           _checkOnERC721Received(address(0), to, tokenId, data),
           "ERC721: transfer to non ERC721Receiver implementer"
       );
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment