Skip to content
Snippets Groups Projects
Commit 8b2e35cb authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Use Contact model in E2EVerifyOwnership

parent f90959af
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!42Update Bindings
...@@ -2,24 +2,24 @@ import Bindings ...@@ -2,24 +2,24 @@ import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct E2EVerifyOwnership { public struct E2EVerifyOwnership {
public var run: (Data, Data, Int) throws -> Bool public var run: (Contact, Contact, Int) throws -> Bool
public func callAsFunction( public func callAsFunction(
receivedContact: Data, received: Contact,
verifiedContact: Data, verified: Contact,
e2eId: Int e2eId: Int
) throws -> Bool { ) throws -> Bool {
try run(receivedContact, verifiedContact, e2eId) try run(received, verified, e2eId)
} }
} }
extension E2EVerifyOwnership { extension E2EVerifyOwnership {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EVerifyOwnership { public static func live(_ bindingsE2E: BindingsE2e) -> E2EVerifyOwnership {
E2EVerifyOwnership { receivedContact, verifiedContact, e2eId in E2EVerifyOwnership { received, verified, e2eId in
var result: ObjCBool = false var result: ObjCBool = false
try bindingsE2E.verifyOwnership( try bindingsE2E.verifyOwnership(
receivedContact, received.data,
verifiedContact: verifiedContact, verifiedContact: verified.data,
e2eId: e2eId, e2eId: e2eId,
ret0_: &result ret0_: &result
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment