I recently created a standard ERC20 token with openzepplin. Now, how do I make it a “mintable” token?. Or just using ERC20.sol makes is a mintable token if it’s not capped.
Welcome to the community.
ERC20 is only mintable if you add in the functionality, otherwise it is a fixed supply.
You can use the Preset ERC20 contract.
There are guides on how to deploy:
- Create an ERC20 using Truffle, without writing Solidity
- Create an ERC20 using Remix, without writing Solidity
- Create an ERC20 using buidler, without writing Solidity
Otherwise you can look at the code to see how minting functionality is added: