ERC165CheckerMock.sol 613 B

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