diff --git a/Sources/ElixxirDAppsSDK/StoreReceptionIdentity.swift b/Sources/ElixxirDAppsSDK/StoreReceptionIdentity.swift index a56f212b76dbce6a4b6cdc2c95810407d5737911..5752bd5d91884b12b71ac6be812346b8d0e21fcb 100644 --- a/Sources/ElixxirDAppsSDK/StoreReceptionIdentity.swift +++ b/Sources/ElixxirDAppsSDK/StoreReceptionIdentity.swift @@ -2,11 +2,11 @@ import Bindings import XCTestDynamicOverlay public struct StoreReceptionIdentity { - public var run: (String, Data, Int) throws -> Bool + public var run: (String, ReceptionIdentity, Int) throws -> Bool public func callAsFunction( key: String, - identity: Data, + identity: ReceptionIdentity, cmixId: Int ) throws -> Bool { try run(key, identity, cmixId) @@ -16,7 +16,8 @@ public struct StoreReceptionIdentity { extension StoreReceptionIdentity { public static let live = StoreReceptionIdentity { key, identity, cmixId in var error: NSError? - let result = BindingsStoreReceptionIdentity(key, identity, cmixId, &error) + let identityData = try identity.encode() + let result = BindingsStoreReceptionIdentity(key, identityData, cmixId, &error) if let error = error { throw error }