diff --git a/contracts/RMRK/emotable/EmotableRepository.sol b/contracts/RMRK/emotable/EmotableRepository.sol index 7a2d5e30..a70d0fc6 100644 --- a/contracts/RMRK/emotable/EmotableRepository.sol +++ b/contracts/RMRK/emotable/EmotableRepository.sol @@ -3,7 +3,6 @@ pragma solidity ^0.8.16; import "./IERC6381.sol"; -import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error BulkParametersOfUnequalLength(); error ExpiredPresignedEmote(); diff --git a/contracts/RMRK/emotable/IERC6381.sol b/contracts/RMRK/emotable/IERC6381.sol index 31890995..6127406a 100644 --- a/contracts/RMRK/emotable/IERC6381.sol +++ b/contracts/RMRK/emotable/IERC6381.sol @@ -2,7 +2,9 @@ pragma solidity ^0.8.16; -interface IERC6381 { +import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; + +interface IERC6381 is IERC165 { event Emoted( address indexed emoter, address indexed collection, diff --git a/docs/RMRK/emotable/EmotableRepository.md b/docs/RMRK/emotable/EmotableRepository.md index 7335d4f0..23fac510 100644 --- a/docs/RMRK/emotable/EmotableRepository.md +++ b/docs/RMRK/emotable/EmotableRepository.md @@ -271,7 +271,7 @@ function supportsInterface(bytes4 interfaceId) external view returns (bool) - +*Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.* #### Parameters diff --git a/docs/RMRK/emotable/IERC6381.md b/docs/RMRK/emotable/IERC6381.md index 12b41678..ce0ca06a 100644 --- a/docs/RMRK/emotable/IERC6381.md +++ b/docs/RMRK/emotable/IERC6381.md @@ -246,6 +246,28 @@ function presignedEmote(address emoter, address collection, uint256 tokenId, str | r | bytes32 | undefined | | s | bytes32 | undefined | +### supportsInterface + +```solidity +function supportsInterface(bytes4 interfaceId) external view returns (bool) +``` + + + +*Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.* + +#### Parameters + +| Name | Type | Description | +|---|---|---| +| interfaceId | bytes4 | undefined | + +#### Returns + +| Name | Type | Description | +|---|---|---| +| _0 | bool | undefined | + ## Events