Skip to content

Commit

Permalink
Restore mandatory protocol version in offer cred options (temporarily)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Richardson <mike.richardson@northernblock.io>
  • Loading branch information
NB-MikeRichardson committed May 19, 2022
1 parent 9ea1dc7 commit c2bf770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface NegotiateProposalOptions extends BaseOptions {
interface OfferCredentialOptions extends BaseOptions {
credentialRecordId?: string
connectionId?: string
protocolVersion?: CredentialProtocolVersion
protocolVersion: CredentialProtocolVersion
credentialFormats: FormatServiceAcceptProposeCredentialFormats
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export class V2CredentialService extends CredentialService {
const options: ServiceOfferCredentialOptions = {
credentialFormats: proposal.credentialFormats,
comment: proposal.comment,
protocolVersion: credentialRecord.protocolVersion,
}
const message = await this.createOfferAsResponse(credentialRecord, options)

Expand Down

0 comments on commit c2bf770

Please sign in to comment.