The totalSupply
function in the ERC20
contract is a view function that returns the total supply of tokens in circulation. It retrieves the value of the internal _totalSupply
variable, which represents the total number of tokens that have been minted.
uint256
: The function returns a single output, which is the total supply of the tokens as a uint256
value.