Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove default value for allowed issuers #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilya-korotya
Copy link
Contributor

No description provided.

@@ -114,3 +115,7 @@ export function unpackV2ValidatorParams(hex: string) {
hex
);
}

export function didToString(did: string): string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change usage / name didToIdString

@@ -68,15 +69,15 @@ export function packV2ValidatorParams(query: any, allowedIssuers: any[] = []) {
slotIndex: query.slotIndex,
value: query.value,
queryHash: query.queryHash,
allowedIssuers: allowedIssuers,
allowedIssuers: query.allowedIssuers.map((issuer) => didToIdString(issuer)),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we throw or log warning if allowedIssuers is empty ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants