1

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

3

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.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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