solana-labs / explorer

Explorer for Solana clusters
https://explorer.solana.com
MIT License
214 stars 278 forks source link

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

Open JuanMarchetto opened 4 months ago

JuanMarchetto commented 4 months ago

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 commented 4 months ago

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

nickfrosty commented 4 months ago

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 commented 4 months ago

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