Skip to main content

Questions tagged [eip-165]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
0 answers
138 views

Why EIP-165 consider 0xffffffff value to be invalid id?

EIP-165 aims to provide a way for a contract to communicate whether it has implemented a certain interface or not. The standard defines the interface identifier as the XOR of all function selectors in ...
Ilya Loskutov's user avatar
3 votes
4 answers
4k views

Is there a way to get an interface ID of a Solidity interface using ethersjs?

Is there a way to get an interface ID of a Solidity interface using ethersjs? I'm using ethersjs in my test file and I want to test if the supportsInterface is returning a correct interface ID. I ...
xenon's user avatar
  • 455
2 votes
0 answers
430 views

How should supportsInterface be implemented for interfaces with multiple levels of inheritance in ERC165?

When an interface has multiple levels of inheritance, should the supportsInterface in ERC165 checks the entire entire inheritance stack of the interface or just the top-most level? Here's an example. ...
xenon's user avatar
  • 455