2

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 1

5

The safeTransferFrom function is used to check if the address receiving the token is an ERC-721 receiver or not. The goal is to ensure that your NFT does not get locked up in an address from which you can never retrieve it. Try and read the documentation for the ERC721TokenReceiver.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.