Skip to content

Appends the default approval (self-initiated is approved) to the front of the list. This will have "self-initiated-incoming" for IDs.

appendSelfInitiatedIncomingApproval(currApprovals, userAddress): UserIncomingApprovalWithDetails<bigint>[]

Defined in: packages/bitbadgesjs-sdk/src/core/approval-utils.ts:42

Appends the default approval (self-initiated is approved) to the front of the list. This will have "self-initiated-incoming" for IDs.

Parameters

currApprovals

UserIncomingApprovalWithDetails<bigint>[]

userAddress

string

Returns

UserIncomingApprovalWithDetails<bigint>[]

Edit this page on GitHub