From 4d5fb3be20b5bab02b4a68d23db4c87b6ab46ac6 Mon Sep 17 00:00:00 2001 From: lenkan Date: Mon, 19 Feb 2024 10:21:44 +0100 Subject: [PATCH] fix types --- examples/integration-scripts/multisig-holder.test.ts | 7 +------ .../integration-scripts/singlesig-vlei-issuance.test.ts | 7 ++++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/examples/integration-scripts/multisig-holder.test.ts b/examples/integration-scripts/multisig-holder.test.ts index bb13c5b3..b5e26879 100644 --- a/examples/integration-scripts/multisig-holder.test.ts +++ b/examples/integration-scripts/multisig-holder.test.ts @@ -1,10 +1,5 @@ import { strict as assert } from 'assert'; -import signify, { - SignifyClient, - IssueCredentialArgs, - Operation, - CredentialData, -} from 'signify-ts'; +import signify, { SignifyClient, Operation, CredentialData } from 'signify-ts'; import { resolveEnvironment } from './utils/resolve-env'; import { assertOperations, diff --git a/examples/integration-scripts/singlesig-vlei-issuance.test.ts b/examples/integration-scripts/singlesig-vlei-issuance.test.ts index 59861090..6b729663 100644 --- a/examples/integration-scripts/singlesig-vlei-issuance.test.ts +++ b/examples/integration-scripts/singlesig-vlei-issuance.test.ts @@ -490,7 +490,8 @@ async function getOrIssueCredential( credData: any, schema: string, rules?: any, - source?: any + source?: any, + privacy = false ): Promise { const credentialList = await issuerClient.credentials().list(); @@ -509,10 +510,10 @@ async function getOrIssueCredential( const issResult = await issuerClient.credentials().issue(issuerAid.name, { ri: issuerRegistry.regk, s: schema, - u: new Salter({}).qb64, + u: privacy ? new Salter({}).qb64 : undefined, a: { i: recipientAid.prefix, - u: new Salter({}).qb64, + u: privacy ? new Salter({}).qb64 : undefined, ...credData, }, r: rules,