Skip to content

Commit

Permalink
Merge main into ATL-4496
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianIOHK committed Oct 16, 2023
2 parents 8bd9bb7 + 0549258 commit 1898ca8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ class PolluxImpl(
}

override fun extractCredentialFormatFromMessage(formats: Array<AttachmentDescriptor>): CredentialType {
val desiredFormats = setOf(CredentialType.JWT.type, CredentialType.ANONCREDS_OFFER.type, CredentialType.ANONCREDS_REQUEST.type, CredentialType.ANONCREDS_ISSUE.type)
val desiredFormats = setOf(
CredentialType.JWT.type,
CredentialType.ANONCREDS_OFFER.type,
CredentialType.ANONCREDS_REQUEST.type,
CredentialType.ANONCREDS_ISSUE.type
)
val foundFormat = formats.find { it.format in desiredFormats }
return foundFormat?.format?.let { format ->
when (format) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ data class OfferCredential @JvmOverloads constructor(

val fromDID = fromMessage.from
val toDID = fromMessage.to
val json = Json {
ignoreUnknownKeys = true
}
val body = Json.decodeFromString<Body>(fromMessage.body)
return OfferCredential(
id = fromMessage.id,
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ apollo_version = 1.0.2
didpeer_version = 1.0.4-alpha
kotlin.mpp.androidSourceSetLayoutVersion = 2
kotlinx.atomicfu.enableJvmIrTransformation=true
kotlinx.atomicfu.enableJsIrTransformation=true
kotlinx.atomicfu.enableJsIrTransformation=true

0 comments on commit 1898ca8

Please sign in to comment.