[Bug]: Stale settings causing error when switching to a new chain #29430
Labels
external-contributor
regression-prod-7.1.0
Regression bug that was found in production in release 7.1.0
Sev1-high
High severity; partial loss of service with severe impact upon users, with no workaround.
team-wallet-api-platform
type-bug
Describe the bug
Summary of the issue:
The new chain restriction permission doesn't clean up settings of deleted chains. This causes an error
Couldn't find networkClientId for chainId
to happen when trying to switch chains (in this case via viem's method for switching evm chains). This error happens because chain restriction permissions are iterated and validated, but when removing a chain the permission persists.Expected behavior
Chain switching shouldn't be impacted by the permissions from a deleted chain
Screenshots/Recordings
Here's also a jam that follows the steps above:
https://jam.dev/c/45b53f97-5e11-46da-84b5-c821ee0418e0
Steps to reproduce
Steps to reproduce:
You can reproduce this on relay.link
Error messages or log output
console-1735936059454.log
Couldn't find networkClientId for chainId
Detection stage
In production (default)
Version
7.1.0
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
High severity as it's preventing users from completing transactions
The text was updated successfully, but these errors were encountered: