From 2f3233dc173635d140240ae592fa30cceb29379c Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Mon, 25 Jul 2022 19:14:38 +0100 Subject: [PATCH] Update LoadReceptionIdentity functor --- Sources/ElixxirDAppsSDK/LoadReceptionIdentity.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ElixxirDAppsSDK/LoadReceptionIdentity.swift b/Sources/ElixxirDAppsSDK/LoadReceptionIdentity.swift index eeb1c832..64506348 100644 --- a/Sources/ElixxirDAppsSDK/LoadReceptionIdentity.swift +++ b/Sources/ElixxirDAppsSDK/LoadReceptionIdentity.swift @@ -2,12 +2,12 @@ import Bindings import XCTestDynamicOverlay public struct LoadReceptionIdentity { - public var run: (String, Int) throws -> Data + public var run: (String, Int) throws -> ReceptionIdentity public func callAsFunction( key: String, cmixId: Int - ) throws -> Data { + ) throws -> ReceptionIdentity { try run(key, cmixId) } } @@ -22,7 +22,7 @@ extension LoadReceptionIdentity { guard let data = data else { fatalError("BindingsLoadReceptionIdentity returned `nil` without providing error") } - return data + return try ReceptionIdentity.decode(data) } } -- GitLab