Skip to content

Commit c239319

Browse files
committed
Fix pex required attributes filter.
1 parent 577b611 commit c239319

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/verification-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export function createVerificationController({
195195
? keyDoc.id
196196
: `${keyDoc.controller}#keys-1`,
197197
domain: 'dock.io',
198-
...(isRangeProofTemplate(templateJSON) ? { pexForBounds: templateJSON } : {}),
198+
pexForBounds: templateJSON,
199199
});
200200

201201
return presentation;

packages/wasm/src/services/credential/pex-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export function getPexRequiredAttributes(pexRequest, selectedCredentials = []) {
268268
.map((inputDescriptor, index) => {
269269
return inputDescriptor.constraints.fields
270270
.filter(field => {
271-
if (field.filter) {
271+
if (field.filter || field.optional) {
272272
return false;
273273
}
274274

0 commit comments

Comments
 (0)