Skip to content

Commit

Permalink
using constants
Browse files Browse the repository at this point in the history
Signed-off-by: 2byrds <[email protected]>
  • Loading branch information
2byrds committed Jul 17, 2024
1 parent 114a2b1 commit 76fd97d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/integration-scripts/challenge.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ test('challenge', async () => {
client1,
await icpResult1.op()
);
let rpyResult1 = await client1
const rpyResult1 = await client1
.identifiers()
.addEndRole('alice', 'agent', client1!.agent!.pre);
await waitOperation(client1, await rpyResult1.op());
Expand All @@ -81,7 +81,7 @@ test('challenge', async () => {
client2,
await icpResult2.op()
);
let rpyResult2 = await client2
const rpyResult2 = await client2
.identifiers()
.addEndRole('bob', 'agent', client2!.agent!.pre);
await waitOperation(client2, await rpyResult2.op());
Expand Down
14 changes: 7 additions & 7 deletions examples/integration-scripts/credentials.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ test('single signature credentials', async () => {
.rename(issuerAid.name, registryName, updatedRegistryName);

registries = await issuerClient.registries().list(issuerAid.name);
let updateRegistry: { name: string; regk: string } = registries[0];
const updateRegistry: { name: string; regk: string } = registries[0];
assert.equal(registries.length, 1);
assert.equal(updateRegistry.name, updatedRegistryName);

Expand Down Expand Up @@ -236,7 +236,7 @@ test('single signature credentials', async () => {
datetime: dt,
});

let op = await issuerClient
const op = await issuerClient
.ipex()
.submitGrant(issuerAid.name, grant, gsigs, gend, [
holderAid.prefix,
Expand All @@ -259,7 +259,7 @@ test('single signature credentials', async () => {
grantNotification.a.d!,
createTimestamp()
);
let op = await holderClient
const op = await holderClient
.ipex()
.submitAdmit(holderAid.name, admit, sigs, aend, [issuerAid.prefix]);
await waitOperation(holderClient, op);
Expand Down Expand Up @@ -306,7 +306,7 @@ test('single signature credentials', async () => {
datetime: createTimestamp(),
});

let op = await holderClient
const op = await holderClient
.ipex()
.submitGrant(holderAid.name, grant2, gsigs2, gend2, [
verifierAid.prefix,
Expand All @@ -331,7 +331,7 @@ test('single signature credentials', async () => {
createTimestamp()
);

let op = await verifierClient
const op = await verifierClient
.ipex()
.submitAdmit(verifierAid.name, admit3, sigs3, aend3, [
holderAid.prefix,
Expand Down Expand Up @@ -430,7 +430,7 @@ test('single signature credentials', async () => {
datetime: dt,
});

let op = await holderClient
const op = await holderClient
.ipex()
.submitGrant(holderAid.name, grant, gsigs, gend, [
legalEntityAid.prefix,
Expand All @@ -454,7 +454,7 @@ test('single signature credentials', async () => {
createTimestamp()
);

let op = await legalEntityClient
const op = await legalEntityClient
.ipex()
.submitAdmit(legalEntityAid.name, admit, sigs, aend, [
holderAid.prefix,
Expand Down

0 comments on commit 76fd97d

Please sign in to comment.