Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update handler validation #769

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Conversation

evandrosaturnino
Copy link
Collaborator

Description

A bug was identified when connecting WalletConnect to Gnosis Safe via the wc pairing API: Shortly after a user connects their Gnosis Safe vault to the app, the connection was disconnected.
Upon investigation, it was discovered that the connection between WalletConnect and Gnosis Safe was being interrupted due to the chainId format generated after connecting to Gnosis Safe. This triggered an update that disrupted the connection because of the way the update validation was structured in App.tsx.

Depending on the format in which the chainId is being passed by a 3rd party service, it may trigger an update. To handle these edge cases, this PR aims to add a more comprehensive validation method similarly to what has already been done previously in the commit @3ca72b93ca72b9.

Type of change

  • 🐛 Bug fix (Non-breaking Change: Fixes an issue)
  • 🛠️ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • 💅 New Feature (Breaking/Non-breaking Change)

Notice

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Issue (if applicable)

closes #768

Pull Request Type

  • New Feature (Breaking/Non-breaking Change)

Copy link

@somaweb3
Copy link

LGTM

src/web3/utils/address.ts Outdated Show resolved Hide resolved
Copy link

Copy link

Copy link
Contributor

@michalsmiarowski michalsmiarowski left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

@michalsmiarowski michalsmiarowski merged commit 4f4475b into main Jul 30, 2024
5 checks passed
@michalsmiarowski michalsmiarowski deleted the fix-wallet-connect-update-issue branch July 30, 2024 14:40
@michalsmiarowski michalsmiarowski added this to the v1.17.2 milestone Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WalletConnect is not connecting with Safe
3 participants