Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jun 27, 2023
1 parent 36457da commit 2154b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions src/identity/identity-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,7 @@ export class IdentityWallet implements IIdentityWallet {
req.revocationOpts.id = req.revocationOpts.id.replace(/\/$/, '');

let schema: object;
const loader =
opts?.documentLoader ??
getDocumentLoader({
ipfsNodeURL: 'ipfs.io'
});
const loader = getDocumentLoader(opts);
try {
schema = (await loader(req.credentialSchema)).document;
} catch (e) {
Expand Down
8 changes: 2 additions & 6 deletions src/proof/proof-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ export class ProofService implements IProofService {
): Promise<{ query: Query; vp?: object }> {
const parsedQuery = await this.parseRequest(query.credentialSubject);

const loader = opts?.documentLoader ?? getDocumentLoader();
const loader = getDocumentLoader(opts);
let schema: object;
try {
schema = (await loader(credential['@context'][2])).document;
Expand Down Expand Up @@ -683,11 +683,7 @@ export class ProofService implements IProofService {
credential: W3CCredential,
opts?: MerklizerOptions
): Promise<{ query: Query; vp?: object }> {
const loader =
opts?.documentLoader ??
getDocumentLoader({
ipfsNodeURL: 'ipfs.io'
});
const loader = getDocumentLoader(opts);

let schema: object;
try {
Expand Down

0 comments on commit 2154b5f

Please sign in to comment.