Skip to content

Commit

Permalink
Rollback rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Jul 21, 2023
1 parent 4cfdf4b commit 022dbec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proof/proof-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class ProofService implements IProofService {
// find credential

const credential =
opts.credential ?? (await this.getNonRevokedCredential(identifier, proofReq.query));
opts.credential ?? (await this.findCredential(identifier, proofReq.query));

const { nonce: authProfileNonce, genesisDID } =
await this._identityWallet.getGenesisDIDMetadata(identifier);
Expand Down Expand Up @@ -917,7 +917,7 @@ export class ProofService implements IProofService {
return true;
}

async getNonRevokedCredential(did: DID, query: ProofQuery): Promise<W3CCredential> {
async findCredential(did: DID, query: ProofQuery): Promise<W3CCredential> {
const credentials = await this._identityWallet.findOwnedCredentialsByDID(did, query);

if (!credentials.length) {
Expand Down

0 comments on commit 022dbec

Please sign in to comment.