diff --git a/src/dids/OracleDidResolver.ts b/src/dids/OracleDidResolver.ts index 7711c79..eda4803 100644 --- a/src/dids/OracleDidResolver.ts +++ b/src/dids/OracleDidResolver.ts @@ -49,10 +49,14 @@ export class OracleDidResolver implements DidResolver { const didDocument = await oracleLedgerService.resolve(did); + const didDocumentJson = JsonTransformer.fromJSON(didDocument, DidDocument) + + didDocumentJson.assertionMethod = [didDocument.verificationMethod[0].id]; + return { - didDocument: JsonTransformer.fromJSON(didDocument, DidDocument), + didDocument: didDocumentJson, didDocumentMetadata: {}, didResolutionMetadata: {}, - } + }; } } \ No newline at end of file