Skip to content

Instantly share code, notes, and snippets.

@envatic
envatic / Gold.sol
Created September 8, 2022 22:34
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);
}
@envatic
envatic / FluffyShibaToken.sol
Last active September 8, 2022 22:58
Medium Tutorial Token2
// contracts/GLDToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract FluffyShibaToken is ERC20 {
constructor(uint256 initialSupply) ERC20("FluffyShiba", "FSH") {
_mint(msg.sender, initialSupply);
}