Created
August 23, 2023 06:52
-
-
Save megabyte0x/1cd407947d578059235287cc275f5f0d to your computer and use it in GitHub Desktop.
Basic ERC20 Contract
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.18; | |
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
/** | |
* @title Token | |
* @author Megabyte | |
* @notice ERC20 token contract | |
*/ | |
contract Token is ERC20 { | |
constructor(string memory name, string memory symbol, uint256 initialSupply) ERC20(name, symbol) { | |
_mint(msg.sender, initialSupply); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment