Skip to content

Instantly share code, notes, and snippets.

@umluizlima
Created December 4, 2021 20:03
Show Gist options
  • Save umluizlima/87809aaa6986bc049386e95b2aac1925 to your computer and use it in GitHub Desktop.
Save umluizlima/87809aaa6986bc049386e95b2aac1925 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("Pao de queijo", "PDQ") {
_mint(0x39d77B055155262e6856b1c41996bDD1b860B64A, 817 * 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