Answers for "Create an ERC20 token with fixed initialsupply"

0

Create an ERC20 token with fixed initialsupply

// TSTtoken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract TSTtoken is ERC20 {

uint256 initialSupply = 1000000e18;
    constructor() ERC20("Test", "TST") {
        _mint(msg.sender, initialSupply);
    }
}
Posted by: Guest on March-09-2022

Code answers related to "Create an ERC20 token with fixed initialsupply"

Browse Popular Code Answers by Language