Skip to content

Commit

Permalink
use Request.payloadId to generate ids
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobar79 committed Nov 4, 2020
1 parent 1e11f9e commit 6368166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PublicInterface/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public class Client: WalletConnect {
delegate.client(self, didConnect: existingSession)
} else { // establishing new connection, handshake in process
communicator.subscribe(on: dAppInfo.peerId, url: url)
let request = try! Request(url: url, method: "wc_sessionRequest", params: [dAppInfo], id: UUID().hashValue)
let request = try! Request(url: url, method: "wc_sessionRequest", params: [dAppInfo], id: Request.payloadId())
let requestID = request.internalID!
responses.add(requestID: requestID) { [unowned self] response in
self.handleHandshakeResponse(response)
Expand Down

0 comments on commit 6368166

Please sign in to comment.