Created
October 11, 2022 03:03
-
-
Save ImHukam/fc55c7abc00dbc07763809ac2043b17c to your computer and use it in GitHub Desktop.
zkevm_utils_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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