Skip to content

Commit

Permalink
Merge pull request #597 from WalletConnect/#580-session-deletion-cras…
Browse files Browse the repository at this point in the history
…h-fix

[Sign] remove force unwrap from request
  • Loading branch information
llbartekll authored Nov 21, 2022
2 parents d6d7728 + 2192401 commit e6a2314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WalletConnectNetworking/NetworkingInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class NetworkingInteractor: NetworkInteracting {

public func request(_ request: RPCRequest, topic: String, protocolMethod: ProtocolMethod, envelopeType: Envelope.EnvelopeType) async throws {
try rpcHistory.set(request, forTopic: topic, emmitedBy: .local)
let message = try! serializer.serialize(topic: topic, encodable: request, envelopeType: envelopeType)
let message = try serializer.serialize(topic: topic, encodable: request, envelopeType: envelopeType)
try await relayClient.publish(topic: topic, payload: message, tag: protocolMethod.requestConfig.tag, prompt: protocolMethod.requestConfig.prompt, ttl: protocolMethod.requestConfig.ttl)
}

Expand Down

0 comments on commit e6a2314

Please sign in to comment.