ERC165CheckerMock.sol 602 B

12345678910111213141516171819202122232425262728293031
  1. pragma solidity ^0.4.24;
  2. import "../introspection/ERC165Checker.sol";
  3. contract ERC165CheckerMock {
  4. using ERC165Checker for address;
  5. function supportsERC165(address account)
  6. public
  7. view
  8. returns (bool)
  9. {
  10. return account.supportsERC165();
  11. }
  12. function supportsInterface(address account, bytes4 interfaceId)
  13. public
  14. view
  15. returns (bool)
  16. {
  17. return account.supportsInterface(interfaceId);
  18. }
  19. function supportsInterfaces(address account, bytes4[] interfaceIds)
  20. public
  21. view
  22. returns (bool)
  23. {
  24. return account.supportsInterfaces(interfaceIds);
  25. }
  26. }