diff --git a/Sources/Relayer/WakuNetworkRelay.swift b/Sources/Relayer/WakuNetworkRelay.swift index 8e1eb99fc..e126b30b9 100644 --- a/Sources/Relayer/WakuNetworkRelay.swift +++ b/Sources/Relayer/WakuNetworkRelay.swift @@ -184,7 +184,7 @@ public final class WakuNetworkRelay { private func acknowledgeSubscription(requestId: Int64) { let response = JSONRPCResponse(id: requestId, result: AnyCodable(true)) let responseJson = try! response.json() - try? jsonRpcSubscriptionsHistory.resolve(response: JsonRpcResponseTypes.response(response)) + _ = try? jsonRpcSubscriptionsHistory.resolve(response: JsonRpcResponseTypes.response(response)) dispatcher.send(responseJson) { [weak self] error in if let error = error { self?.logger.debug("Failed to Respond for request id: \(requestId), error: \(error)") diff --git a/Sources/WalletConnect/Engine/SessionEngine.swift b/Sources/WalletConnect/Engine/SessionEngine.swift index 534de8e24..cea274cd0 100644 --- a/Sources/WalletConnect/Engine/SessionEngine.swift +++ b/Sources/WalletConnect/Engine/SessionEngine.swift @@ -366,7 +366,7 @@ final class SessionEngine { if let error = error { logger.error(error) } else { - try? sequencesStore.setSequence(session) + sequencesStore.setSequence(session) onSessionUpgrade?(session.topic, newPermissions) } } diff --git a/Sources/WalletConnect/Relay/WalletConnectRelay.swift b/Sources/WalletConnect/Relay/WalletConnectRelay.swift index 6e3c2c926..c0f39e4e0 100644 --- a/Sources/WalletConnect/Relay/WalletConnectRelay.swift +++ b/Sources/WalletConnect/Relay/WalletConnectRelay.swift @@ -103,10 +103,10 @@ class WalletConnectRelay: WalletConnectRelaying { func respond(topic: String, response: JsonRpcResponseTypes, completion: @escaping ((Error?)->())) { do { - try jsonRpcHistory.resolve(response: response) + _ = try jsonRpcHistory.resolve(response: response) let message = try jsonRpcSerialiser.serialise(topic: topic, encodable: response.value) logger.debug("Responding....topic: \(topic)") - networkRelayer.publish(topic: topic, payload: message) { [weak self] error in + networkRelayer.publish(topic: topic, payload: message) { error in completion(error) } } catch WalletConnectError.internal(.jsonRpcDuplicateDetected) {