Skip to content

Instantly share code, notes, and snippets.

@envatic
Created September 8, 2022 22:34
Show Gist options
  • Save envatic/d1b5f8ecbab47eb97d0b17b09167e81d to your computer and use it in GitHub Desktop.
Save envatic/d1b5f8ecbab47eb97d0b17b09167e81d to your computer and use it in GitHub Desktop.
Token Tutorial on Medium
// 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