Gas price error when minting a created token


I created the following token "". In addition to the written code, the imported calls were ERC20 such as "import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";" but the token was created correctly. However, when executing any function of the token, such as mint for example, it gives a gas error, it returns the message shown in the image. Does anyone know the reason?

1 Like

As you have already minted the maximum token amount in the constructor, an error will occur during the following check from the mint function:

require(totalSupply() + amount <= _maxSupply, "Total supply limit exceeded");