Function: validateCustomDataUpdate()
Validates a state transition (old to new) for custom data, given the current permissions that are set.
validateCustomDataUpdate<
T>(oldCustomData,newCustomData,canUpdateCustomData):Error|null
Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:865
Validates a state transition (old to new) for custom data, given the current permissions that are set.
Type Parameters
T
T extends NumberType
Parameters
oldCustomData
string
newCustomData
string
canUpdateCustomData
ActionPermission<T>[]
Returns
Error | null
Remarks
Can also be used via the corresponding wrapper function in BitBadgesCollection