bladbl

Untitled

Jan 31st, 2023
1,042
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.9;
  3.  
  4. import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
  5. import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
  6.  
  7. contract MyToken is ERC20, Ownable {
  8. constructor() ERC20("GoerliDoge", "GDOGE") {}
  9.  
  10. function mint(address to, uint256 amount) public onlyOwner {
  11. _mint(to, amount);
  12. }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment