We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1810764 commit 1ac3c1dCopy full SHA for 1ac3c1d
packages/cheqd/src/dids/CheqdDidRegistrar.ts
@@ -462,8 +462,8 @@ export class CheqdDidRegistrar implements DidRegistrar {
462
if (response.code !== 0) {
463
throw new Error(`${response.rawLog}`)
464
}
465
- // Collect all contexts from the didDic into a set
466
- const contextSet = this.collectAllContexts(didDocument)
+ // Collect all contexts, override existing context if provided
+ const contextSet = this.collectAllContexts(options.didDocument || didDocument)
467
// Add Cheqd default context to the did document
468
didDocument.context = Array.from(contextSet.add(DID_V1_CONTEXT_URL))
469
// Save the did so we know we created it and can issue with it
0 commit comments