Fungible tokens
The createAndMint(...)
function accepts the parameter amount
. This is an amount
of tokens to be minted immediately, right? Then how to specify the total supply?
The total supply is defined as the total number of tokens currently minted, so if amount
is the amount of tokens to be minted immediately, then total supply will be that amount.
If you decide to mint more tokens, then the supply will increase.
You can learn more about SPL Token at https://spl.solana.com/token