MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.18k stars 1.12k forks source link

[Bug]: QR accounts labels #9592

Open plasmacorral opened 6 months ago

plasmacorral commented 6 months ago

Describe the bug

Observed this today when feature QA testing chore: Update @metamask/keyring-controller to v16

9570.

Prior to Keyring v13, new QR accounts were added as Keystone x where the x reflected the index position of the Keystone address, regardless of how many accounts were present in MetaMask. Now, QR addresses are being added with the label Account y where y-1 is how many other addresses are present in the wallet.

Devices observed:

Expected behavior

QR addresses should be added with a reference to their index position rather than the number of other accounts present.

While we are adjusting here, it may be worth getting product feedback on whether we want to continue to name all QR addresses as Keystone or whether we use a more accurate label like QR to reflect the fact that Airgap and any other hardware wallet supporting ERC4527 could be used here.

Screenshots/Recordings

Adresses in the green box were added prior to Keyring Controller v13, and the address in the red box was added after

Screenshot 2024-05-09 at 11 54 49 AM

Steps to reproduce

  1. Create a wallet
  2. Add QR hardware address
  3. Note the account label

Error messages or log output

No response

Version

main

Build type

None

Device

Several

Operating system

iOS, Android

Additional context

Observed on main and QA build from PR 9318/9508, but used the 7.23.0 and RC regression labels as I anticipate 9318 9508 being included in the next RC.

Severity

This could lead to user confusion and make it challenging to keep track of QR hardware addresses.

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.