Skip to content

@gala-chain/chaincodeAPI


API > ensureQuantityCanBeMinted

Function: ensureQuantityCanBeMinted()

ensureQuantityCanBeMinted(tokenClass, quantity, totalKnownMintAllowanceCount?, totalKnownBurnsCount?): boolean

Parameters

tokenClass: TokenClass

quantity: BigNumber

totalKnownMintAllowanceCount?: BigNumber

totalKnownBurnsCount?: BigNumber

Returns

boolean

Description

Calculate whether or not the requested quantity exceeds the maximum capacity or supply for the given TokenClass.

Source

chaincode/src/allowances/grantAllowance.ts:244