Skip to content

Commit

Permalink
fix: credential context order (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Sep 6, 2024
1 parent 0053901 commit 7978a82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/credentials/credential-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
];
Expand Down

0 comments on commit 7978a82

Please sign in to comment.