Skip to content

Instantly share code, notes, and snippets.

@ImHukam
Created October 11, 2022 03:03
Show Gist options
  • Save ImHukam/fc55c7abc00dbc07763809ac2043b17c to your computer and use it in GitHub Desktop.
Save ImHukam/fc55c7abc00dbc07763809ac2043b17c to your computer and use it in GitHub Desktop.
zkevm_utils_test
const hre = require("hardhat");
async function main() {
const Contract = await hre.ethers.getContractFactory("TestERC165");
const contract = await Contract.deploy();
await contract.deployed();
console.log("deployed to:", contract.address);
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
contract TestERC165 is ERC165{
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId || super.supportsInterface(interfaceId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment