ERC721 calling ERC721

Hi there,

I’m wondering if Line 112 in the latest ERC721.sol is correct? The approve function is calling ERC721.ownerOf instead of IERC721.ownerOf. It looks strange and got a compile error, since it’s ERC721 calling ERC721. Am I misunderstanding anything? Thanks.

    address owner = ERC721.ownerOf(tokenId);
1 Like

Hi @maxaero,

This was done in: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2473

What was the compile error that you received? Can you share your contract (or a cut down version).