DiamondERC165Init

DiamondERC165Init

setERC165

function setERC165(bytes4[] interfaceIds, bytes4[] interfaceIdsToRemove) external

set or unset ERC165 using DiamondStorage.supportedInterfaces

Parameters

Name
Type
Description

interfaceIds

bytes4[]

list of interface id to set as supported

interfaceIdsToRemove

bytes4[]

list of interface id to unset as supported. Technically, you can remove support of ERC165 by having the IERC165 id itself being part of that array.

Was this helpful?