Skip to content

Commit 9b610d3

Browse files
YamenMerhifrangio
authored andcommitted
Add warning for supportsERC165InterfaceUnchecked edge case (#4017)
(cherry picked from commit d13ec90)
1 parent c018c9c commit 9b610d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contracts/utils/introspection/ERC165Checker.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ library ERC165Checker {
102102
* @dev Assumes that account contains a contract that supports ERC165, otherwise
103103
* the behavior of this method is undefined. This precondition can be checked
104104
* with {supportsERC165}.
105+
*
106+
* Some precompiled contracts will falsely indicate support for a given interface, so caution
107+
* should be exercised when using this function.
108+
*
105109
* Interface identification is specified in ERC-165.
106110
*/
107111
function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) {

0 commit comments

Comments
 (0)