From c5099d28eee0428b52167f731b424dc33ddb9c03 Mon Sep 17 00:00:00 2001 From: Ahmed Shehata <ahmedshehata@Ahmeds-MacBook-Pro-2.local> Date: Thu, 9 Jun 2022 02:15:09 +0400 Subject: [PATCH] Fix a scenario where failing to get roundsList is blocking the whole message delivery callback --- Sources/ElixxirDAppsSDK/MessageDeliveryWaiter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ElixxirDAppsSDK/MessageDeliveryWaiter.swift b/Sources/ElixxirDAppsSDK/MessageDeliveryWaiter.swift index 84c19ce7..e5e254c0 100644 --- a/Sources/ElixxirDAppsSDK/MessageDeliveryWaiter.swift +++ b/Sources/ElixxirDAppsSDK/MessageDeliveryWaiter.swift @@ -46,7 +46,7 @@ private final class Callback: NSObject, BindingsMessageDeliveryCallbackProtocol let roundResults = try decoder.decode([Int].self, from: roundResultsData) return onCallback(.delivered(roundResults: roundResults)) } catch { - fatalError("BindingsMessageDeliveryCallback roundResults decoding error: \(error)") + return onCallback(.delivered(roundResults: [Int]())) } } if !delivered, roundResults == nil { -- GitLab