diff --git a/Sources/ElixxirDAppsSDK/E2E.swift b/Sources/ElixxirDAppsSDK/E2E.swift index da1b6d48beb6da5aba6f34e6edf2120a16acdbd3..d9beb4e2a109654bb60f51c5bed44044b5367c09 100644 --- a/Sources/ElixxirDAppsSDK/E2E.swift +++ b/Sources/ElixxirDAppsSDK/E2E.swift @@ -16,11 +16,11 @@ public struct E2E { extension E2E { public static func live(_ bindingsE2E: BindingsE2e) -> E2E { E2E( - getId: .live(bindingsE2E: bindingsE2E), - getReceptionId: .live(bindingsE2E: bindingsE2E), - getContact: .live(bindingsE2E: bindingsE2E), - payloadSize: .live(bindingsE2E: bindingsE2E), - partitionSize: .live(bindingsE2E: bindingsE2E), + getId: .live(bindingsE2E), + getReceptionId: .live(bindingsE2E), + getContact: .live(bindingsE2E), + payloadSize: .live(bindingsE2E), + partitionSize: .live(bindingsE2E), addPartnerCallback: .live(bindingsE2E), addService: .live(bindingsE2E), removeService: .live(bindingsE2E) diff --git a/Sources/ElixxirDAppsSDK/E2EGetContact.swift b/Sources/ElixxirDAppsSDK/E2EGetContact.swift index fc9053bcdd40c3a4aaacbd79aef6847f12c82689..9dba2d2bf05daf6733ffba612d1b8d3d35bc21fd 100644 --- a/Sources/ElixxirDAppsSDK/E2EGetContact.swift +++ b/Sources/ElixxirDAppsSDK/E2EGetContact.swift @@ -10,7 +10,7 @@ public struct E2EGetContact { } extension E2EGetContact { - public static func live(bindingsE2E: BindingsE2e) -> E2EGetContact { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetContact { E2EGetContact { guard let data = bindingsE2E.getContact() else { fatalError("BindingsE2e.getContact returned `nil`") diff --git a/Sources/ElixxirDAppsSDK/E2EGetId.swift b/Sources/ElixxirDAppsSDK/E2EGetId.swift index 0813698594ec525991f67d8ab8f594904092a259..b3ee86a2e658f507a74e6055f30a1c11e50f169d 100644 --- a/Sources/ElixxirDAppsSDK/E2EGetId.swift +++ b/Sources/ElixxirDAppsSDK/E2EGetId.swift @@ -10,7 +10,7 @@ public struct E2EGetId { } extension E2EGetId { - public static func live(bindingsE2E: BindingsE2e) -> E2EGetId { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetId { E2EGetId(run: bindingsE2E.getID) } } diff --git a/Sources/ElixxirDAppsSDK/E2EGetReceptionId.swift b/Sources/ElixxirDAppsSDK/E2EGetReceptionId.swift index 7bbbcc40cdf90a209ed902797d3430cd5971633e..da24b408d26f0a45cf722c5f9124ce18ad294f9e 100644 --- a/Sources/ElixxirDAppsSDK/E2EGetReceptionId.swift +++ b/Sources/ElixxirDAppsSDK/E2EGetReceptionId.swift @@ -10,7 +10,7 @@ public struct E2EGetReceptionId { } extension E2EGetReceptionId { - public static func live(bindingsE2E: BindingsE2e) -> E2EGetReceptionId { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EGetReceptionId { E2EGetReceptionId { guard let data = bindingsE2E.getReceptionID() else { fatalError("BindingsE2e.getReceptionID returned `nil`") diff --git a/Sources/ElixxirDAppsSDK/E2EPartitionSize.swift b/Sources/ElixxirDAppsSDK/E2EPartitionSize.swift index a3d8d722e05155badca9e4356c73450ed729cd97..9f7a5267856e7b6ca3439d78c275c12784a8ba61 100644 --- a/Sources/ElixxirDAppsSDK/E2EPartitionSize.swift +++ b/Sources/ElixxirDAppsSDK/E2EPartitionSize.swift @@ -12,7 +12,7 @@ public struct E2EPartitionSize { } extension E2EPartitionSize { - public static func live(bindingsE2E: BindingsE2e) -> E2EPartitionSize { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EPartitionSize { E2EPartitionSize( first: bindingsE2E.firstPartitionSize, second: bindingsE2E.secondPartitionSize, diff --git a/Sources/ElixxirDAppsSDK/E2EPayloadSize.swift b/Sources/ElixxirDAppsSDK/E2EPayloadSize.swift index bf2ee5ab9179736b1b094fc35ba0f42fe608f678..7412be29b9ab3246a698dee3a3257ba41dd1397a 100644 --- a/Sources/ElixxirDAppsSDK/E2EPayloadSize.swift +++ b/Sources/ElixxirDAppsSDK/E2EPayloadSize.swift @@ -10,7 +10,7 @@ public struct E2EPayloadSize { } extension E2EPayloadSize { - public static func live(bindingsE2E: BindingsE2e) -> E2EPayloadSize { + public static func live(_ bindingsE2E: BindingsE2e) -> E2EPayloadSize { E2EPayloadSize(run: bindingsE2E.payloadSize) } }