How To Create a Token (Step-by-Step ERC20 Code Explained)
About this lesson
Join the Bootcamp waitlist to fully understand how to write smart contracts and build your own dApp: https://whiteboardcrypto.com/ Here's the code: //SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; contract TheodoresToken is ERC20("Theodores Token", "TT"),Ownable{ function mintFifty() public onlyOwner { _mint(msg.sender, 50 * 10**18); } }
Original Description
Join the Bootcamp waitlist to fully understand how to write smart contracts and build your own dApp: https://whiteboardcrypto.com/
Here's the code:
//SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
contract TheodoresToken is ERC20("Theodores Token", "TT"),Ownable{
function mintFifty() public onlyOwner {
_mint(msg.sender, 50 * 10**18);
}
}
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Related Reads
📰
📰
📰
📰
Why We Fine-Tuned a Local LLM for Personalized Language Learning
Medium · AI
Why We Fine-Tuned a Local LLM for Personalized Language Learning
Medium · Machine Learning
GPT-5.6 USA: Global Privacy & Competition Ripple
Dev.to AI
Integrating the OpenAI API the Right Way — Streaming, Rate-Limiting, and Prompt
Dev.to · Ardhansu Das
🎓
Tutor Explanation
DeepCamp AI