diff --git a/Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift b/Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift index f4c6a6a4292a17c3c29545211960c13934c7508d..13ae2e7617349451be9ce64d2a51c1a34cab15fb 100644 --- a/Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift +++ b/Sources/ElixxirDAppsSDK/CMix/Functors/CMixWaitForRoundResult.swift @@ -2,22 +2,22 @@ import Bindings import XCTestDynamicOverlay public struct CMixWaitForRoundResult { - public var run: (E2ESendReport, Int, MessageDeliveryCallback) throws -> Void + public var run: (Data, Int, MessageDeliveryCallback) throws -> Void public func callAsFunction( - report: E2ESendReport, + roundList: Data, timeoutMS: Int, callback: MessageDeliveryCallback ) throws { - try run(report, timeoutMS, callback) + try run(roundList, timeoutMS, callback) } } extension CMixWaitForRoundResult { public static func live(_ bindingsCMix: BindingsCmix) -> CMixWaitForRoundResult { - CMixWaitForRoundResult { report, timeoutMS, callback in + CMixWaitForRoundResult { roundList, timeoutMS, callback in try bindingsCMix.wait( - forRoundResult: try report.encode(), + forRoundResult: roundList, mdc: callback.makeBindingsMessageDeliveryCallback(), timeoutMS: timeoutMS )