Skip to content

Commit

Permalink
Merge pull request #94 from ADORSYS-GIS/feat/update-the-contact-excha…
Browse files Browse the repository at this point in the history
…nge-library

updated the contact-exchange library
  • Loading branch information
Ogenbertrand authored Feb 14, 2025
2 parents dfcfb3c + 5236113 commit 3ac8250
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/contact-exchange/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adorsys-gis/contact-exchange",
"version": "1.0.4",
"version": "1.0.5",
"type": "commonjs",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class DidService {

const secretsResolver = new DidcommSecretsResolver(updatedSecrets);

const val: IMessage = {
const mediationRequest = new Message({
id: uuidv4(),
typ: MessageTyp.Didcomm,
type: MessageType.MediationRequest,
Expand All @@ -118,9 +118,8 @@ export class DidService {
to: [didTo],
created_time: Math.round(Date.now() / 1000),
return_route: 'all',
};
});

const mediationRequest = new Message(val);
const [packedMediationRequest] = await mediationRequest.pack_encrypted(
didTo,
didPeer.did,
Expand Down

0 comments on commit 3ac8250

Please sign in to comment.