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

Use Contact model in E2ERequestAuthenticatedChannel

parent eeb4d06c
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!42Update Bindings
......@@ -2,22 +2,22 @@ import Bindings
import XCTestDynamicOverlay
public struct E2ERequestAuthenticatedChannel {
public var run: (Data, [Fact]) throws -> Int64
public var run: (Contact, [Fact]) throws -> Int64
public func callAsFunction(
partnerContact: Data,
partner: Contact,
myFacts: [Fact]
) throws -> Int64 {
try run(partnerContact, myFacts)
try run(partner, myFacts)
}
}
extension E2ERequestAuthenticatedChannel {
public static func live(_ bindingsE2E: BindingsE2e) -> E2ERequestAuthenticatedChannel {
E2ERequestAuthenticatedChannel { partnerContact, myFacts in
E2ERequestAuthenticatedChannel { partner, myFacts in
var roundId: Int64 = 0
try bindingsE2E.request(
partnerContact,
partner.data,
factsListJson: try myFacts.encode(),
ret0_: &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