Skip to content

Validates a state transition (old to new) for standards, given the current permissions that are set.

validateStandardsUpdate<T>(oldStandards, newStandards, canUpdateStandards): Error | null

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:887

Validates a state transition (old to new) for standards, given the current permissions that are set.

Type Parameters

T

T extends NumberType

Parameters

oldStandards

string[]

newStandards

string[]

canUpdateStandards

ActionPermission<T>[]

Returns

Error | null

Remarks

Can also be used via the corresponding wrapper function in BitBadgesCollection

Edit this page on GitHub