2023-01-29 22:22:15 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
pragma solidity ^0.8.17;
|
|
|
|
|
|
|
|
import "./IERC1155Metadata.sol";
|
|
|
|
|
|
|
|
contract ERC1155Metadata {
|
|
|
|
|
|
|
|
/**
|
|
|
|
@notice Query if a contract implements an interface
|
|
|
|
@param _interfaceId The interface identifier, as specified in ERC-165
|
|
|
|
@return `true` if the contract implements `_interfaceID`
|
|
|
|
*/
|
2023-01-30 06:09:51 +00:00
|
|
|
function supportsInterface(bytes4 _interfaceId) public virtual view returns (bool) {
|
2023-01-29 22:22:15 +00:00
|
|
|
if (_interfaceId == type(ERC1155Metadata_URI).interfaceId) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
else return false;
|
|
|
|
}
|
|
|
|
}
|