MetaMask / MetaMask/core

Permissions Controller Issue When Changing QR Wallets

Open
#3,785 0 comments 0 reactions 0 assignees View on GitHub
area-hardware team-accounts
Dominant language
TypeScript
Stars
413
Forks
308
Avg merge
1d 4h
Merged PRs (30d)
253

Description

When a user attempts to switch QR wallets while using the same dapp, the permissions controller generates an error message stating that an account cannot be found. This 'missing' account belongs to the previous QR wallet and remains lodged in the state of the permissions controller.

![Screenshot 2024-01-16 at 20 12 25](https://github.com/MetaMask/core/assets/96463427/3157530d-ea80-49b6-95c5-78f89a935def)

Steps To Replicate:
1. Create an account with the imToken Qr wallet
2. Connect to the test dapp
3. Forget the qr device
4. Connect with a Keystone QR wallet
5. See the following error

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the QR-wallet switch sequence against the test dapp: connect with imToken, forget the QR device, then connect with Keystone. Trace the permissions controller state after the first wallet is forgotten and verify that switching wallets no longer reports the previous account as missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authorization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.