Skip to content

Validates if a state transition (old approvals -> new approvals) is valid, given the current permissions.

validateCollectionApprovalsUpdate<T>(oldApprovals, newApprovals, canUpdateCollectionApprovals): Error | null

Defined in: packages/bitbadgesjs-sdk/src/core/approvals.ts:2500

Validates if a state transition (old approvals -> new approvals) is valid, given the current permissions.

Type Parameters

T

T extends NumberType

Parameters

oldApprovals

CollectionApprovalWithDetails<T>[]

newApprovals

CollectionApprovalWithDetails<T>[]

canUpdateCollectionApprovals

CollectionApprovalPermissionWithDetails<T>[]

Returns

Error | null

Edit this page on GitHub