From 0d9b21ef138d789467c453e82272639e481114ba Mon Sep 17 00:00:00 2001 From: Dariusz Rybicki <dariusz@elixxir.io> Date: Fri, 26 Aug 2022 13:30:02 +0100 Subject: [PATCH] Use Contact model in LookupUD --- Sources/XXClient/Functors/LookupUD.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/XXClient/Functors/LookupUD.swift b/Sources/XXClient/Functors/LookupUD.swift index 5bd977c6..0626470c 100644 --- a/Sources/XXClient/Functors/LookupUD.swift +++ b/Sources/XXClient/Functors/LookupUD.swift @@ -2,11 +2,11 @@ import Bindings import XCTestDynamicOverlay public struct LookupUD { - public var run: (Int, Data, Data, Data, UdLookupCallback) throws -> SingleUseSendReport + public var run: (Int, Contact, Data, Data, UdLookupCallback) throws -> SingleUseSendReport public func callAsFunction( e2eId: Int, - udContact: Data, + udContact: Contact, lookupId: Data, singleRequestParamsJSON: Data = GetSingleUseParams.liveDefault(), callback: UdLookupCallback @@ -22,7 +22,7 @@ extension LookupUD { var error: NSError? let reportData = BindingsLookupUD( e2eId, - udContact, + udContact.data, callback.makeBindingsUdLookupCallback(), lookupId, singleRequestParamsJSON, -- GitLab