Skip to content

Latest commit

 

History

History
173 lines (151 loc) · 5.52 KB

ERC165InterfacesSupported.md

File metadata and controls

173 lines (151 loc) · 5.52 KB

ERC165InterfacesSupported.sol

View Source: contracts/mocks/ERC165/ERC165InterfacesSupported.sol

↗ Extends: IERC165

ERC165InterfacesSupported

Contract Members

Constants & Variables

//public members
bytes4 public constant InterfaceId_ERC165;

//private members
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

private method for registering an interface

function _registerInterface(bytes4 interfaceId) internal undefined

Arguments

Name Type Description
interfaceId bytes4

Contracts