Skip to content

Latest commit

 

History

History
173 lines (151 loc) · 5.62 KB

ERC165.md

File metadata and controls

173 lines (151 loc) · 5.62 KB

ERC165 (ERC165.sol)

View Source: contracts/introspection/ERC165.sol

↗ Extends: IERC165 ↘ Derived Contracts: ERC165Mock, ERC721, ERC721Enumerable, ERC721Metadata

ERC165

Implements ERC165 using a lookup table.

Contract Members

Constants & Variables

bytes4 private constant _InterfaceId_ERC165;
mapping(bytes4 => bool) private _supportedInterfaces;

Functions

supportsInterface

⤾ overrides IERC165.supportsInterface

implement supportsInterface(bytes4) using a lookup table

function supportsInterface(bytes4 interfaceId) external
returns(bool)

Arguments

Name Type Description
interfaceId bytes4

_registerInterface

internal method for registering an interface

function _registerInterface(bytes4 interfaceId) internal undefined

Arguments

Name Type Description
interfaceId bytes4

Contracts