token-minter-mcp

by kukapay
Verified
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract SimpleERC20 is ERC20 { uint8 private _decimals; constructor( string memory name, string memory symbol, uint256 initialSupply, uint8 decimals_ ) ERC20(name, symbol) { _decimals = decimals_; _mint(msg.sender, initialSupply * 10 ** decimals_); } // Override decimals function to return custom decimals function decimals() public view virtual override returns (uint8) { return _decimals; } }