// SPDX-License-Identifier: MIT pragma solidity 0.8.37; import {ERC20} from "@openzeppelin/contracts@5.6.1/token/ERC20/ERC20.sol"; /// @notice Learning example for Cryptik Testnet. No monetary value. contract CustomTestToken is ERC20 { constructor(string memory name_, string memory symbol_, uint256 wholeSupply) ERC20(name_, symbol_) { require(block.chainid == 20260922, "Cryptik Testnet only"); require(bytes(name_).length > 0 && bytes(name_).length <= 64, "Invalid name"); require(bytes(symbol_).length > 0 && bytes(symbol_).length <= 12, "Invalid symbol"); require(wholeSupply > 0 && wholeSupply <= 1_000_000_000, "Invalid supply"); _mint(msg.sender, wholeSupply * 10 ** decimals()); } }