Last active
March 6, 2021 21:43
-
-
Save staringispolite/5aefde5d3fdd5d61b6f7962156dc53b5 to your computer and use it in GitHub Desktop.
Basic fixed supply ERC-20 that inherits from OpenZeppelin
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.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
contract FixedCreatorToken is ERC20 { | |
constructor(string memory name_, string memory symbol_, uint256 totalSupply_) ERC20(name_, symbol_) public { | |
_mint(msg.sender, totalSupply_); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment