Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the supportsInterface() calls #90

Merged
merged 1 commit into from
May 25, 2021
Merged

Remove the supportsInterface() calls #90

merged 1 commit into from
May 25, 2021

Conversation

bpierre
Copy link
Owner

@bpierre bpierre commented May 25, 2021

Reasons:

  • It slows down the data request, instead of trying the uri() (ERC1155) and tokenURI() (ERC721) methods directly.
  • Several contracts (CryptoVoxels, MakersPlace) return false on supportsInterface(<ERC721>), despite implementing the tokenURI() method correctly, requiring to add exceptions.
  • I haven’t seen a situation yet where a contract implements either tokenURI() or uri() incorrectly.

Reasons:

- It slows down the data request, instead of trying the uri() (ERC1155)
  and tokenURI() (ERC721) methods directly.
- Several contracts (CryptoVoxels, MakersPlace) return false on
  supportsInterface(ERC721), despite implementing the tokenURI() method
  correctly, requiring to add exceptions.
- I haven’t seen a situation yet where a contract implements either
  tokenURI() or uri() incorrectly.
@bpierre bpierre merged commit a10a6b0 into main May 25, 2021
@bpierre bpierre deleted the no-erc165 branch May 25, 2021 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant