CakeWallet/cw_evm
David Adegoke af89603b81
CW-1103:Token Validation Issues (#2327)
* feat(token_validation): Improve flow for adding new tokens across wallets

This change:
- Implements check to see if a token is already added, preventing duplicates
- Triggers dialog warning if its a duplicate token
- Takes EVM Chains contract adddress case-insensitivity when making checks for potential scams.

* refactor(token_validation): Modify token management flow

This change:
- Removes duplicate token check during token addition in EVMChainWalletBase.
- Introduces a flag to indicate if a token is being edited
- Adjusts token addition validation to bypass checks when editing an existing token.

* Update lib/src/screens/dashboard/edit_token_page.dart

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-06-24 05:47:21 +03:00
..
lib CW-1103:Token Validation Issues (#2327) 2025-06-24 05:47:21 +03:00
test CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
.gitignore CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
.metadata CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
analysis_options.yaml CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
CHANGELOG.md CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
LICENSE CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00
pubspec.yaml CW-1090-ledger-issues (#2314) 2025-06-19 20:00:16 +03:00
README.md CW-551-Refactor-EVM-Chains (#1256) 2024-01-30 20:01:48 +02:00

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features

TODO: List what your package can do. Maybe include images, gifs, or videos.

Getting started

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

const like = 'sample';

Additional information

TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.