// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.0.0/contracts/token/ERC20/ERC20.sol"; contract MyToken is ERC20 { function decimals() public view virtual override returns (uint8) { return 8; // Replace with your desired decimals } constructor(string memory name, string memory symbol) ERC20(name, symbol) { // Mint 100 tokens to msg.sender // Similar to how // 1 dollar = 100 cents // 1 token = 1 * (10 ** decimals) _mint(msg.sender, 100_000_000_000 * 10 ** uint(decimals())); } }