metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Solana accounts (second SRP) name mismatch

Open sleepytanya opened this issue 1 year ago • 9 comments

Describe the bug

  1. Accounts 5, 8 and 7 in the Accounts list (in this order 5 - 8 - 7)
  2. I switch to Account 7 (it never loads)
  3. I switch to Account 8 - the Account name on the home screen is Account 6
  4. After adding more Solana accounts, the Account 7 con't be found within the Accounts list

Update:

Account 7 disappeared only from the Accounts list - if I choose Account 9, the Account name on the home screen is Account 7:

https://github.com/user-attachments/assets/278710b3-fa55-4cf3-8ba4-b2e2f16a7f63

Expected behavior

Screenshots/Recordings

https://github.com/user-attachments/assets/b0eaceb0-13cb-41c0-b001-0207eb8ddfc6

https://github.com/user-attachments/assets/88d631ad-9a37-40de-b0fe-efa6dd29845c

Steps to reproduce

  1. Import Solana wallet with the SRP
  2. Switch between / create accounts

Error messages or log output


Detection stage

During release testing

Version

12.18.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

sleepytanya avatar May 07 '25 21:05 sleepytanya

@PatrykLucka Reviewing tomorrow morning. Can't adjust assignee

DostoevskysPiano avatar May 09 '25 01:05 DostoevskysPiano

Reproduced using the following steps:

  • Import 1 SRP with multiple Solana accounts
  • Click on Lock wallet
  • Click on Forgot password
  • Restore with the same SRP (Notice only the first 3 Solana accounts are restored)
  • Add Solana Account
  • Notice Solana Account 4 is added but Solana Account 3 disappears from the list (they have the same address, so no account is lost)

Video

MetaMask state logs.json

Image

Unik0rnMaggie avatar May 09 '25 09:05 Unik0rnMaggie

I was not able to reproduce the name mismatch or disappearing of the account, but it looks like there are some issues in solana snap for discovering accounts activity on devnet. I'm getting different number of accounts discovered on almost every discovery for one of our test SRPs. @ulissesferreira is helping with this. He found that sometimes we're getting empty array for account that should return some activity. I hope that fixing that issue will fix also other issues I was not able to reproduce.

PatrykLucka avatar May 09 '25 13:05 PatrykLucka

Hey @ulissesferreira can you link the relevant PR here?

DostoevskysPiano avatar May 09 '25 15:05 DostoevskysPiano

Hey guys, no PR needed to be linked, we have traced back the discovery of accounts problem to faulty RPC responses which have been talked about in a thread with DIN + Infura

ulissesferreira avatar May 12 '25 11:05 ulissesferreira

Thank you @ulissesferreira 🙏 Updating Teams

DostoevskysPiano avatar May 12 '25 12:05 DostoevskysPiano

@ulissesferreira can we close that bug or remove the release-blocker label as a solution has been found? https://consensys.slack.com/archives/C07K3SY1LMQ/p1747128815829139?thread_ts=1746797644.390509&cid=C07K3SY1LMQ cc: @sleepytanya @javiergarciavera @jvbriones

ziedbrini avatar May 13 '25 10:05 ziedbrini

Fixed in the latest build https://github.com/MetaMask/metamask-extension/pull/32383#issuecomment-2876776776

https://github.com/user-attachments/assets/371381c0-c976-41ed-8689-11aa1b0643af

sleepytanya avatar May 13 '25 17:05 sleepytanya

Hi @PatrykLucka,

This issue has been closed. Please complete this RCA form: https://docs.google.com/forms/d/e/1FAIpQLSfnfEWH7JCFFtvjCHixgyqJdTU3LW3BmTwdF1dDezTNf7m4ig/viewform?entry.340898780=32647&entry.1756851972=regression-RC-12.18.0&entry.765806202=team-solana

github-actions[bot] avatar May 13 '25 17:05 github-actions[bot]