Explanation to ERC165 used in ERC721?

Hi there, can anyone please give an intuitive explanation on why ERC721 needs to inherit from ERC165? I understand ERC165 checks for interface but why? and why ERC721 in particular needs it? Thanks.

2 Likes

Hi @maxareo,

I suggest looking at the documentation: https://docs.openzeppelin.com/contracts/3.x/api/introspection

Also, you can have a look at the EIPs: https://eips.ethereum.org/EIPS/eip-721 and https://eips.ethereum.org/EIPS/eip-165