link : Click!
Feel free donate to my EVM address
EVM :
0x03974DdCA9eE8a606287c361AE37e2b78F53CB3a
git clone https://github.com/sekuja/swisstronik-erc20-mint-token.git
cd swisstronik-erc20-mint-token
npm install
create .env file in root project
PRIVATE_KEY="your private key"
- Open contract folder
- Create Token.sol file
- Copy this code and paste there
- Feel free to modify token name and token symbol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract TestToken is ERC20 {
constructor()ERC20("IzzyToken","IZZY"){}
function mint1000tokens() public {
_mint(msg.sender,1000*10**18);
}
function burn1000tokens() public{
_burn(msg.sender,1000*10**18);
}
}
npm run compile
npm run deploy
npm run mint
npm run check-supply
npm run balance-of
npm run transfer
- Open the deployed-adddress.ts (location in utils folder)
- Copy the address and paste the address in testnet dashboard
- push this project to your github and paste your repository link in testnet dashboard