Created
August 20, 2022 02:45
-
-
Save ChanJuiHuang/bd9f71a9c8bc6c974f2cdda14fd096e2 to your computer and use it in GitHub Desktop.
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 "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract WoWToken is ERC20 { | |
uint256 public _totalSupply = 10000; | |
constructor() ERC20("WoWToken", "WOW") { | |
_mint(msg.sender, _totalSupply); | |
} | |
function buyCoin(address _to, uint256 _amount) public { | |
_mint(_to, _amount); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment