Skip to content

Instantly share code, notes, and snippets.

@megabyte0x
Created August 23, 2023 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save megabyte0x/1cd407947d578059235287cc275f5f0d to your computer and use it in GitHub Desktop.
Save megabyte0x/1cd407947d578059235287cc275f5f0d to your computer and use it in GitHub Desktop.
Basic ERC20 Contract
// 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