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

[Backport] Fix update handler validation #772

Conversation

michalsmiarowski
Copy link
Contributor

Backport of: #769

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
Collaborator

@evandrosaturnino evandrosaturnino 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 changed the title Backport fix wallet connect update issue [Backport] Fix wallet connect update issue Jul 30, 2024
@michalsmiarowski michalsmiarowski changed the title [Backport] Fix wallet connect update issue [Backport] Fix update handler validation Jul 30, 2024
@michalsmiarowski michalsmiarowski added this to the v1.17.2 milestone Jul 30, 2024
Copy link

@evandrosaturnino evandrosaturnino merged commit 1b2e90b into releases/mainnet/v1.17.x Jul 30, 2024
5 checks passed
@evandrosaturnino evandrosaturnino deleted the backport-fix-wallet-connect-update-issue branch July 30, 2024 15:00
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