From 1a41866cf9e8bae2d84006e1b256d3e6c5f8ea6d Mon Sep 17 00:00:00 2001 From: dtsiflit Date: Mon, 14 Oct 2024 17:57:03 +0300 Subject: [PATCH] [fix] presentation source fix --- .../PresentationDefinition/PresentationDefinitionSource.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PresentationDefinition/PresentationDefinitionSource.swift b/Sources/PresentationDefinition/PresentationDefinitionSource.swift index e754713..7cab246 100644 --- a/Sources/PresentationDefinition/PresentationDefinitionSource.swift +++ b/Sources/PresentationDefinition/PresentationDefinitionSource.swift @@ -24,7 +24,7 @@ public enum PresentationDefinitionSource { public extension PresentationDefinitionSource { init(authorizationRequestObject: JSON) throws { - if let presentationDefinitionObject = authorizationRequestObject[Constants.PRESENTATION_DEFINITION].dictionary { + if let presentationDefinitionObject = authorizationRequestObject[Constants.PRESENTATION_DEFINITION].dictionaryObject { let jsonData = try JSONSerialization.data(withJSONObject: presentationDefinitionObject, options: []) let presentationDefinition = try JSONDecoder().decode(PresentationDefinition.self, from: jsonData)