Skip to content

Commit

Permalink
Fix decode list helper w/StatusList2021 tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Feb 24, 2024
1 parent deb3b17 commit 04dd66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/mocha/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export async function getCredentialStatus({verifiableCredential}) {

const {encodedList} = slc.credentialSubject;
let list;
if(statusListCredential.type === 'StatusList2021Credential') {
if(slc.type.includes('StatusList2021Credential')) {
list = await decodeList2021({encodedList});
} else {
list = await decodeList({encodedList});
Expand Down

0 comments on commit 04dd66c

Please sign in to comment.