Created
November 22, 2025 00:30
-
-
Save Violet-Bora-Lee/cd775535bcaf0bbb0d7e8c46524ca741 to your computer and use it in GitHub Desktop.
ERC-20 with 수신자 지정
This file contains hidden or 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 | |
| // Compatible with OpenZeppelin Contracts ^5.5.0 | |
| pragma solidity ^0.8.27; | |
| import {ERC20} from "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; | |
| import {ERC20Permit} from "@openzeppelin/[email protected]/token/ERC20/extensions/ERC20Permit.sol"; | |
| contract MyToken is ERC20, ERC20Permit { | |
| constructor(address recipient) | |
| ERC20("MyTokenTest", "MTKT") | |
| ERC20Permit("MyToken") | |
| { | |
| _mint(recipient, 10000 * 10 ** decimals()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment