Skip to content

Commit

Permalink
fix(credentials): indy cred attachment format (#862)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Jun 15, 2022
1 parent 1cc8f46 commit 16935e2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { IndyCredPropose } from './models/IndyCredPropose'
const INDY_CRED_ABSTRACT = 'hlindy/[email protected]'
const INDY_CRED_REQUEST = 'hlindy/[email protected]'
const INDY_CRED_FILTER = 'hlindy/[email protected]'
const INDY_CRED = 'hlindy/[email protected]'

@scoped(Lifecycle.ContainerScoped)
export class IndyCredentialFormatService extends CredentialFormatService<IndyCredentialFormat> {
Expand Down Expand Up @@ -302,7 +303,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre

const format = new CredentialFormatSpec({
attachId,
format: INDY_CRED_ABSTRACT,
format: INDY_CRED,
})

const attachment = this.getFormatData(credential, format.attachId)
Expand Down Expand Up @@ -355,7 +356,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre
}

public supportsFormat(format: string): boolean {
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER]
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER, INDY_CRED]

return supportedFormats.includes(format)
}
Expand Down

0 comments on commit 16935e2

Please sign in to comment.