diff --git a/Sources/ElixxirDAppsSDK/CmixMakeLegacyReceptionIdentity.swift b/Sources/ElixxirDAppsSDK/CmixMakeLegacyReceptionIdentity.swift index 2f461616bce21750aa9b57fc258e779eaccccbc3..8ba84385b806e193ad3f1eff0058aace33b5b28f 100644 --- a/Sources/ElixxirDAppsSDK/CmixMakeLegacyReceptionIdentity.swift +++ b/Sources/ElixxirDAppsSDK/CmixMakeLegacyReceptionIdentity.swift @@ -2,16 +2,19 @@ import Bindings import XCTestDynamicOverlay public struct CmixMakeLegacyReceptionIdentity { - public var run: () throws -> Data + public var run: () throws -> ReceptionIdentity - public func callAsFunction() throws -> Data { + public func callAsFunction() throws -> ReceptionIdentity { try run() } } extension CmixMakeLegacyReceptionIdentity { public static func live(_ bindingsCmix: BindingsCmix) -> CmixMakeLegacyReceptionIdentity { - CmixMakeLegacyReceptionIdentity(run: bindingsCmix.makeLegacyReceptionIdentity) + CmixMakeLegacyReceptionIdentity { + let data = try bindingsCmix.makeLegacyReceptionIdentity() + return try ReceptionIdentity.decode(data) + } } }