Skip to content

Instantly share code, notes, and snippets.

@ChanJuiHuang
Created August 20, 2022 02:45
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 ChanJuiHuang/bd9f71a9c8bc6c974f2cdda14fd096e2 to your computer and use it in GitHub Desktop.
Save ChanJuiHuang/bd9f71a9c8bc6c974f2cdda14fd096e2 to your computer and use it in GitHub Desktop.
// 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