Created
September 8, 2022 22:34
-
-
Save envatic/d1b5f8ecbab47eb97d0b17b09167e81d to your computer and use it in GitHub Desktop.
Token Tutorial on Medium
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
// contracts/GLDToken.sol | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract GLDToken is ERC20 { | |
constructor(uint256 initialSupply) ERC20("Gold", "GLD") { | |
_mint(msg.sender, initialSupply); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment