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

Use Contact model in E2EResetAuthenticatedChannel

parent 84728c4a
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!42Update Bindings
......@@ -2,18 +2,18 @@ import Bindings
import XCTestDynamicOverlay
public struct E2EResetAuthenticatedChannel {
public var run: (Data) throws -> Int64
public var run: (Contact) throws -> Int64
public func callAsFunction(partnerContact: Data) throws -> Int64 {
try run(partnerContact)
public func callAsFunction(partner: Contact) throws -> Int64 {
try run(partner)
}
}
extension E2EResetAuthenticatedChannel {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EResetAuthenticatedChannel {
E2EResetAuthenticatedChannel { partnerContact in
E2EResetAuthenticatedChannel { partner in
var roundId: Int64 = 0
try bindingsE2E.reset(partnerContact, ret0_: &roundId)
try bindingsE2E.reset(partner.data, ret0_: &roundId)
return roundId
}
}
......
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