Closed 0FuzzingQ closed 10 months ago
interface Temp { function supportsInterface(bytes4 interfaceId) external pure returns (bool); } contract Tmp is Temp { function supportsInterface(bytes4 interfaceId) external pure override returns (bool) { return true; } }``` 使用: ` const selectorERC721 = "0x80ac58cd" const isERC721 = await contractbayc.supportsInterface(selectorERC721) ` 将返回true ,但实际上该合约并不是erc721标准的
这是根据erc165标准检测的,可以满足绝大多数情况。 一般不会有合约故意实现这个接口。