Created
March 30, 2024 18:30
-
-
Save Violet-Bora-Lee/71ed0208c33a037d522774181dc46e29 to your computer and use it in GitHub Desktop.
erc-20 토큰 발행
This file contains 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 | |
pragma solidity ^0.8.20; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract MyToken is ERC20 { | |
constructor() ERC20("DUG Coin", "DUG") { | |
_mint(msg.sender, 100 * 10 ** ERC20.decimals()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment