Function: validateCollectionMetadataUpdate()
Validates a state transition (old to new) for collection metadata, given the current permissions that are set.
validateCollectionMetadataUpdate<
T>(oldCollectionMetadata,newCollectionMetadata,canUpdateCollectionMetadata):Error|null
Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:821
Validates a state transition (old to new) for collection metadata, given the current permissions that are set.
Type Parameters
T
T extends NumberType
Parameters
oldCollectionMetadata
newCollectionMetadata
canUpdateCollectionMetadata
ActionPermission<T>[]
Returns
Error | null
Remarks
Can also be used via the corresponding wrapper function in BitBadgesCollection