Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Erroneous "Account does not exist" displays when an account has no SOL #336

Open
JuanMarchetto opened this issue Apr 20, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@JuanMarchetto
Copy link

Describe the bug
"Account does not exist" is get displays when an account has no SOL, even if is an account with previus activity and has ATAs

To Reproduce
Steps to reproduce the behavior:

  1. Look up an address with some SOL and at least another token or NFT for more clarity
  2. Check how the balance is displayed on the explorer
  3. Send max amount of SOL to another wallet you own
  4. You can verify that now how the explorer displays "Account does not exist" in the "Balance (SOL)" field

Example Links

Expected behavior
An account should be display his SOL balance as 0 in this escenario

Screenshots
Screenshot 2024-04-20 at 09 47 48

@JuanMarchetto JuanMarchetto added the bug Something isn't working label Apr 20, 2024
@JuanMarchetto
Copy link
Author

I can make a PR to address this issue if you agree

@nickfrosty
Copy link
Collaborator

This is as expected. When an account did exist and all its SOL (aka lamports) are transferred out, making its balance 0, the account gets garbage collected by the run time. Making it no longer exist

@JuanMarchetto
Copy link
Author

This is as expected. When an account did exist and all its SOL (aka lamports) are transferred out, making its balance 0, the account gets garbage collected by the run time. Making it no longer exist

Ok, i understand, maybe is a too technical concept for general users do, but if you think that display that is enough we can close this issue

@philetos
Copy link

@nickfrosty what about for cNFT Accounts? #378

@J4Web
Copy link

J4Web commented Oct 26, 2024

@nickfrosty Technically, that’s correct. However, it could be confusing for users who recently swapped all of their SOL (lamports) to another token like JUP. When they check their account on the explorer and see ‘Account not found,’ it might feel alarming. A clearer message could help prevent this confusion what do you think ? @JuanMarchetto

@nickfrosty
Copy link
Collaborator

@philetos cnfts are not technically in accounts though. The way their hash id works looks similar because it's base58 encoded, but it functions very different.

@J4Web it could be alarming/concerning. A more clear message might be warranted though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants