hedera-smart-contracts icon indicating copy to clipboard operation
hedera-smart-contracts copied to clipboard

Clarify the meaning of the `tokenSupplyType` parameter

Open lukelee-sl opened this issue 1 year ago • 0 comments

Problem

This example shows how to create tokens using the IHederaTokenService interface. It is not clear what the fifth argument's value indicates.

Solution

The fifth argument sets the tokenSupplyType for the newly create token - a value of true indicates a finite supply and false indicates an infinite supply. Create and use a new variable such as bool finiteTotalSupplyType = true; in order to help clarify the meaning of this parameter in the above example.

Alternatives

No response

lukelee-sl avatar Oct 13 '23 18:10 lukelee-sl