Skip to content
Lattice

AccessControlDiamondCutLib Constants

Git Source

ERC165_MAP_IACCESSCONTROLDIAMONDCUT_SLOT

type(IAccessControlDiamondCut).interfaceId == 0x1f931c1c, identical to IDiamondCut (the interface exposes only diamondCut). Its ERC-165 map slot is therefore keccak256(abi.encode(bytes4(0x1f931c1c), ERC165_STORAGE_LOCATION)) = 0xa0f80413692945aab97c6ef0328381ebb94e4b17a84d11ebf6b61f73435b6d7e, which is exactly DiamondLib's ERC165_MAP_ICUT_SLOT. We do NOT mint a separate constant or register a second time: DiamondLib.registerInterface() already sets this flag in any 2535 deployment.

bytes32 constant ERC165_MAP_IACCESSCONTROLDIAMONDCUT_SLOT =
    0xa0f80413692945aab97c6ef0328381ebb94e4b17a84d11ebf6b61f73435b6d7e;