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

Implement ERC-165 support #115

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Implement ERC-165 support #115

merged 2 commits into from
Apr 12, 2024

Conversation

alisinabh
Copy link
Member

Closes #108

EIP-165 provides a way to check if a contract supports a specific interface or not.

This PR adds:

  • Separate Ethers.Contracts.ERC165 contract
  • A behaviour for other contracts supporting ERC165 interface checks to expose their interface ID.
  • Support calling Ethers.Contracts.ERC165.supports_interface/1 with modules implementing ERC165 behaviour instead of interface IDs directly.

@alisinabh alisinabh self-assigned this Apr 11, 2024
Copy link
Contributor

@wchenNL wchenNL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alisinabh alisinabh merged commit 78c0d09 into main Apr 12, 2024
4 checks passed
@alisinabh alisinabh deleted the eip-165 branch April 12, 2024 22: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.

Add a standalone ERC-165 contract with helpers
2 participants