I hope you are all well :)
I have a question about the _checkOnERC721Received function of the ERC721 smart contract of Openzeppelin.
I don't understand this part:
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
What must be implemented in the onERC721Received function?
Thank you for your help
Take care
Pierre