16 lines
431 B
Solidity
16 lines
431 B
Solidity
// SPDX-License-Identifier: Proprietary
|
|
|
|
pragma solidity ^0.7.2;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import "./IERC165.sol";
|
|
import "./LibDiamond.sol";
|
|
|
|
contract ERC165Facet is IERC165 {
|
|
|
|
function supportsInterface(bytes4 interfaceId) external view override returns (bool) {
|
|
require(interfaceId != 0xffffffff, "Invalid interface id");
|
|
return LibDiamond.diamondStorage().supportedInterfaces[interfaceId];
|
|
}
|
|
|
|
} |