From bcbc47681cf710ab1e2ca3c59ad38b87a520916b Mon Sep 17 00:00:00 2001 From: Cliff Hall Date: Tue, 31 Aug 2021 12:28:37 -0400 Subject: [PATCH] Update interface definition code section (#3783) * Removed supportsInterface from the IERC2981 interface * Added a separate definition of the IERC165 interface with the original comment language * For more details about this change, see; https://github.com/ethereum/EIPs/issues/2907#issuecomment-903283402 --- EIPS/eip-2981.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/EIPS/eip-2981.md b/EIPS/eip-2981.md index f3ec769e..3822e273 100644 --- a/EIPS/eip-2981.md +++ b/EIPS/eip-2981.md @@ -95,16 +95,17 @@ interface IERC2981 is IERC165 { address receiver, uint256 royaltyAmount ); - - /// @notice Informs callers that this contract supports ERC2981 - /// @dev If `_registerInterface(_INTERFACE_ID_ERC2981)` is called - /// in the initializer, this should be automatic - /// @param interfaceID The interface identifier, as specified in ERC-165 - /// @return `true` if the contract implements - /// `_INTERFACE_ID_ERC2981` and `false` otherwise - function supportsInterface(bytes4 interfaceID) external view returns (bool); } +interface IERC165 { + /// @notice Query if a contract implements an interface + /// @param interfaceID The interface identifier, as specified in ERC-165 + /// @dev Interface identification is specified in ERC-165. This function + /// uses less than 30,000 gas. + /// @return `true` if the contract implements `interfaceID` and + /// `interfaceID` is not 0xffffffff, `false` otherwise + function supportsInterface(bytes4 interfaceID) external view returns (bool); +} ``` ### Examples