Skip to content

Commit

Permalink
Merge pull request #350 from Concordium/fix-incorrect-issuer
Browse files Browse the repository at this point in the history
Fix faulty identity selector
  • Loading branch information
shjortConcordium authored Aug 24, 2023
2 parents 35ca88b + 6e2103a commit 2e596c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/browser-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed

- Incorrect verifiable presentations created, due to incorrect identity/identityProviderIndex used.
- Wallet crashing when showing a proof request, while having a verifiable credential that is not yet on chain (or we otherwise fail to retrieve the status)

## 1.1.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function getAccountCredentialCommitmentInput(
throw new Error('IdQualifier not fulfilled');
}

const identity = (identities || []).find(isIdentityOfCredential);
const identity = (identities || []).find((id) => isIdentityOfCredential(id)(credential));

if (!identity || identity.status !== CreationStatus.Confirmed) {
throw new Error('No identity found for credential');
Expand Down

0 comments on commit 2e596c6

Please sign in to comment.