Skip to content

Conversation

@llbartekll
Copy link
Collaborator

Description

Resolves # (issue)

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses fixes for the web wallet functionality in AppKit by disabling the disconnect operation in the modal view model, updating URL routing in the wallet detail view model for better browser handling, and refining the wallet opening logic in the session account presenter.

  • Disable disconnect code in Web3ModalViewModel
  • Add new browser navigation logic in WalletDetailViewModel with proper URL format handling
  • Refactor openWallet method in SessionAccountPresenter to accept parameters for request ID and session topic

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Sources/ReownAppKit/Sheets/Web3ModalViewModel.swift Comment out disconnect task code
Sources/ReownAppKit/Screens/ConnectWallet/WalletDetail/WalletDetailViewModel.swift Implement formatted URL navigation for browser usage with fallback for mobile
Example/DApp/Modules/Sign/SessionAccount/SessionAccountPresenter.swift Update wallet opening logic, introducing parameters for requestId and session topic
Comments suppressed due to low confidence (1)

Example/DApp/Modules/Sign/SessionAccount/SessionAccountPresenter.swift:112

  • The parameter name 'requstId' appears to be a typo; please correct it to 'requestId' for clarity and consistency.
private func openWallet(requstId: RPCID, topic: String) {

@sonarqubecloud
Copy link

@llbartekll llbartekll merged commit 8c1941c into develop Jun 12, 2025
14 of 17 checks passed
@llbartekll llbartekll deleted the appkit-fix-web-wallet branch June 12, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants