I feel there is no need to have safeTransferFrom , the basic tasks can be doable with transferFrom(). Could you please let me know whether can I go ahead with removing safeTransferFrom() function from manually copied code from openzapplin? is there any risk to do the same?
1 Answer
Safetransferfrom() function is just used to check if the address receiving the token is erc721 receiver or not. Just to ensure that your NFT does not get locked up in an address from which you can never retrieve it. Try and read the IERC721 Receiver documentation on openzeppelin.
-
Official documentation for
ERC721TokenReceiver
is at eips.ethereum.org/EIPS/eip-721 Feb 7 at 14:40