Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #769 from threshold-network/fix-wallet-connect-upd…
…ate-issue Fix update handler validation ## 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](3ca72b9). - [X] - [fix update handler validation](5d0e455) ## Type of change - [x] 🐛 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 - [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/shapeshift/web/pulls) for the same update/change? ## Issue (if applicable) closes #768 ## Pull Request Type - [x] New Feature (Breaking/Non-breaking Change)
- Loading branch information