Skip to content

Instantly share code, notes, and snippets.

@MarcoWorms
Created December 2, 2021 16:02
Show Gist options
  • Save MarcoWorms/d86f9ca0b2099bb760adf5e39c7f48d5 to your computer and use it in GitHub Desktop.
Save MarcoWorms/d86f9ca0b2099bb760adf5e39c7f48d5 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract MyToken is ERC20, Ownable {
constructor() ERC20("Weed", "WEED") {
_mint(0xCA88C5D43Bb11eDBcBC1436fEFA9d578d8D64489, 420 * 10 ** decimals());
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment