Skip to content

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

validateManagerUpdate<T>(oldManager, newManager, canUpdateManager): Error | null

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

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

Type Parameters

T

T extends NumberType

Parameters

oldManager

string

newManager

string

canUpdateManager

ActionPermission<T>[]

Returns

Error | null

Remarks

Can also be used via the corresponding wrapper function in BitBadgesCollection

Edit this page on GitHub