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

Update E2ERequestAuthenticatedChannel functor

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