Files
openzeppelin-contracts/contracts/mocks/ERC165/ERC165ReturnBomb.sol
github-actions dbe796d542 Update docs
2023-09-19 19:19:10 +00:00

19 lines
454 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {IERC165} from "../../utils/introspection/IERC165.sol";
contract ERC165ReturnBombMock is IERC165 {
function supportsInterface(bytes4 interfaceId) public pure override returns (bool) {
if (interfaceId == type(IERC165).interfaceId) {
assembly {
mstore(0, 1)
}
}
assembly {
return(0, 101500)
}
}
}