Skip to content

Commit

Permalink
Merge pull request #1379 from WalletConnect/upgrade-on-link-mode-auth…
Browse files Browse the repository at this point in the history
…-response

upgrade on link mode auth response
  • Loading branch information
llbartekll authored Jul 4, 2024
2 parents 4e3826a + 19c1826 commit 57f6ae5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Example/DApp/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
order: 1,
mobileLink: "walletapp://",
linkMode: "https://lab.web3modal.com/wallet"
),
.init(
id: "rn-sample",
name: "RN Sample Wallet",
homepage: "https://walletconnect.com/",
imageUrl: "https://avatars.githubusercontent.com/u/37784886?s=200&v=4",
order: 1,
mobileLink: "rn-web3wallet://",
linkMode: "https://lab.web3modal.com/walletkit_rn"
)
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class AuthResponseSubscriber {
linkEnvelopesDispatcher.responseSubscription(on: SessionAuthenticatedProtocolMethod.responseApprove())
.sink { [unowned self] (payload: ResponseSubscriptionPayload<SessionAuthenticateRequestParams, SessionAuthenticateResponseParams>) in

_ = getTransportTypeUpgradeIfPossible(peerMetadata: payload.response.responder.metadata, requestId: payload.id)

let pairingTopic = payload.topic
pairingRegisterer.activate(pairingTopic: pairingTopic, peerMetadata: nil)
removeResponseTopicRecord(responseTopic: payload.topic)
Expand Down

0 comments on commit 57f6ae5

Please sign in to comment.