DEV Community

Discussion on: How to Create an ERC20 Token in Solidity

Collapse
 
alx90s profile image
Alexander Härdrich • Edited

Hey man, when I created a new ERC20 token with a total token supply of 1000. Then I add 1000 more tokens via the _mint function to any address. Now I reach the limit of 1000 coins and we have a new amount of 2000. Is that possible ? Or is the _totalSuply just the initial amount and not the maximum ?

Collapse
 
abdulmaajid profile image
Abdul Maajid

Yes but you have to add function mint. which will mint new tokens for specific users.