diff --git a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt index da7705a75..856b7f79e 100644 --- a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt +++ b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/pollux/PolluxImpl.kt @@ -192,7 +192,12 @@ class PolluxImpl( } override fun extractCredentialFormatFromMessage(formats: Array): 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) { diff --git a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/protocols/issueCredential/OfferCredential.kt b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/protocols/issueCredential/OfferCredential.kt index 0c006c8ab..0c7194a83 100644 --- a/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/protocols/issueCredential/OfferCredential.kt +++ b/atala-prism-sdk/src/commonMain/kotlin/io/iohk/atala/prism/walletsdk/prismagent/protocols/issueCredential/OfferCredential.kt @@ -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(fromMessage.body) return OfferCredential( id = fromMessage.id, diff --git a/gradle.properties b/gradle.properties index 9a69f98ff..7f61f9e59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +kotlinx.atomicfu.enableJsIrTransformation=true