ERC165ReturnBomb.sol 438 B

123456789101112131415161718
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../../utils/introspection/IERC165.sol";
  4. contract ERC165ReturnBombMock is IERC165 {
  5. function supportsInterface(bytes4 interfaceId) public pure override returns (bool) {
  6. if (interfaceId == type(IERC165).interfaceId) {
  7. assembly {
  8. mstore(0, 1)
  9. }
  10. }
  11. assembly {
  12. return(0, 101500)
  13. }
  14. }
  15. }