Skip to content

Instantly share code, notes, and snippets.

@staringispolite
Last active March 6, 2021 21:43
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 staringispolite/5aefde5d3fdd5d61b6f7962156dc53b5 to your computer and use it in GitHub Desktop.
Save staringispolite/5aefde5d3fdd5d61b6f7962156dc53b5 to your computer and use it in GitHub Desktop.
Basic fixed supply ERC-20 that inherits from OpenZeppelin
// 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