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

fix(wallet-utils): allow tokens without symbol and valid balance #13323

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

tomasklim
Copy link
Member

@tomasklim tomasklim commented Jul 14, 2024

Description

  • do not filter out any tokens
  • use formatter which is used also for solana and cardano in case there is missing symbol
  • ignore nonsense toLowerCase, there is another issue for that. Symbols can be mixed case

Related Issue

Resolve #13322

Screenshots:

Screenshot 2024-07-14 at 20 30 54

Copy link
Contributor

@jvaclavik jvaclavik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment but approving 👍

balance: formatAmount(t.balance!, t.decimals),
}));
name: t.name || symbol,
symbol: symbol.toLowerCase(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:

You have this in the description:

ignore nonsense toLowerCase, there is another issue for that. Symbols can be mixed case

So why do you use toLowerCase here or am I missing something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expressed myself poorly.

The lowercase does not make sense but I am keeping it there just to be sure that it does not break anything, but it will be removed soon

@tomasklim tomasklim merged commit 8f6e666 into develop Jul 15, 2024
44 of 49 checks passed
@tomasklim tomasklim deleted the fix/evm-tokens branch July 15, 2024 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suite does not display tokens without symbol
3 participants