Skip to content

Commit

Permalink
fix single issuer holder script
Browse files Browse the repository at this point in the history
  • Loading branch information
lenkan authored and m00sey committed Nov 21, 2023
1 parent 645d665 commit 8cbaab3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/integration-scripts/single-issuer-holder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async function issueCredential(
await new Promise((resolve) => setTimeout(resolve, 1000));
}

const creds = await client.credentials().list(name);
const creds = await client.credentials().list();
assert.equal(creds.length, 1);
assert.equal(creds[0].sad.s, SCHEMA_SAID);
assert.equal(creds[0].status.s, '0');
Expand Down Expand Up @@ -261,11 +261,11 @@ async function run() {
console.log('Notification marked!');

console.log('Listing credentials...');
let credentials = await holderClient.credentials().list('holder');
let credentials = await holderClient.credentials().list();
while (credentials.length < 1) {
console.log('No credentials yet...');
await new Promise((resolve) => setTimeout(resolve, 1000));
credentials = await holderClient.credentials().list('holder');
credentials = await holderClient.credentials().list();
}

console.log('Succeeded');
Expand Down

0 comments on commit 8cbaab3

Please sign in to comment.