From e3161bd8f8573693cc38cebe2bfcd668b71327d2 Mon Sep 17 00:00:00 2001 From: volodymyr-basiuk <31999965+volodymyr-basiuk@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:17:17 +0300 Subject: [PATCH] fix: credential context order (#266) --- package-lock.json | 4 ++-- package.json | 2 +- src/credentials/credential-wallet.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 808b2b91..76533a19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.18.2", + "version": "1.18.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@0xpolygonid/js-sdk", - "version": "1.18.2", + "version": "1.18.3", "license": "MIT or Apache-2.0", "dependencies": { "@noble/curves": "^1.4.0", diff --git a/package.json b/package.json index f838a93a..a389ceb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xpolygonid/js-sdk", - "version": "1.18.2", + "version": "1.18.3", "description": "SDK to work with Polygon ID", "main": "dist/node/cjs/index.js", "module": "dist/node/esm/index.js", diff --git a/src/credentials/credential-wallet.ts b/src/credentials/credential-wallet.ts index b150d83b..54a4ce27 100644 --- a/src/credentials/credential-wallet.ts +++ b/src/credentials/credential-wallet.ts @@ -274,8 +274,8 @@ export class CredentialWallet implements ICredentialWallet { request.context.push(VerifiableConstants.JSONLD_SCHEMA.IDEN3_DISPLAY_METHOD); } const context = [ - ...request.context, VerifiableConstants.JSONLD_SCHEMA.W3C_CREDENTIAL_2018, + ...request.context, VerifiableConstants.JSONLD_SCHEMA.IDEN3_CREDENTIAL, schema.$metadata.uris['jsonLdContext'] ];