function safeTransferFrom(address from, address to, uint256 id) external { transferFrom(from, to, id); require( to.code.length == 0 || IERC721Receiver(to).onERC721Received(msg.sender, from, id, "") == IERC721Receiver.onERC721Received.selector, "unsafe recipient" ); }
0.7.1