From 040cb12a925165277a15ddb12f497cbe57ae4868 Mon Sep 17 00:00:00 2001 From: milan Date: Mon, 17 Jun 2024 10:04:18 +0530 Subject: [PATCH] Fix #40: Added default format for presentation submission --- .../services/verification/VerificationService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eudi-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/services/verification/VerificationService.kt b/eudi-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/services/verification/VerificationService.kt index 525359c..088c753 100644 --- a/eudi-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/services/verification/VerificationService.kt +++ b/eudi-wallet-oidc-android/src/main/java/com/ewc/eudi_wallet_oidc_android/services/verification/VerificationService.kt @@ -378,7 +378,7 @@ class VerificationService : VerificationServiceInterface { val descriptor = DescriptorMap( id = inputDescriptors.id, path = "$", - format = presentationDefinition.format?.keys?.first(), + format = presentationDefinition.format?.keys?.firstOrNull()?:"jwt_vp", pathNested = PathNested( id = inputDescriptors.id, format = "jwt_vc",