20 lines
543 B
Solidity
20 lines
543 B
Solidity
|
// 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`
|
||
|
*/
|
||
|
function supportsInterface(bytes4 _interfaceId) public virtual pure returns (bool) {
|
||
|
if (_interfaceId == type(ERC1155Metadata_URI).interfaceId) {
|
||
|
return true;
|
||
|
}
|
||
|
else return false;
|
||
|
}
|
||
|
}
|