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
import XCTestDynamicOverlay
public struct E2EVerifyOwnership {
public var run: (Data, Data, Int) throws -> Bool
public var run: (Contact, Contact, Int) throws -> Bool
public func callAsFunction(
receivedContact: Data,
verifiedContact: Data,
received: Contact,
verified: Contact,
e2eId: Int
) throws -> Bool {
try run(receivedContact, verifiedContact, e2eId)
try run(received, verified, e2eId)
}
}
extension E2EVerifyOwnership {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EVerifyOwnership {
E2EVerifyOwnership { receivedContact, verifiedContact, e2eId in
E2EVerifyOwnership { received, verified, e2eId in
var result: ObjCBool = false
try bindingsE2E.verifyOwnership(
receivedContact,
verifiedContact: verifiedContact,
received.data,
verifiedContact: verified.data,
e2eId: e2eId,
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