Skip to content

Commit a12b845

Browse files
committed
fix: pass hasher to cvVerifySchema
1 parent 7d10b97 commit a12b845

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/credential-validation/src/agent/CredentialValidation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export class CredentialValidation implements IAgentPlugin {
7272
private async cvVerifyCredential(args: VerifyCredentialArgs, context: RequiredContext): Promise<VerificationResult> {
7373
const { credential, hasher, policies } = args
7474
// defaulting the schema validation to when_present
75-
const schemaResult = await this.cvVerifySchema({ credential, validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT })
75+
const schemaResult = await this.cvVerifySchema({
76+
credential,
77+
validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT,
78+
hasher,
79+
})
7680
if (!schemaResult.result) {
7781
return schemaResult
7882
}

0 commit comments

Comments
 (0)