Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 796 Bytes

OZ ERC-165.md

File metadata and controls

20 lines (18 loc) · 796 Bytes

OpenZeppelin ERC165: In Solidity, it’s frequently helpful to know whether or not a contract supports an interface you’d like to use.

ERC165 is a standard that helps do runtime interface detection using a lookup table.

You can register interfaces using _registerInterface(bytes4) and supportsInterface(bytes4 interfaceId) returns a bool indicating if that interface is supported or not.


Slide Screenshot

173.jpg


Slide Text

  • Contract -> Interface Determine Support
  • Runtime Detection Lookup Table
  • Register Interface -> _registerInterface(bytes4)
  • supportsInterface(bytes4 interfaceId) -> bool

References


Tags