mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-24 06:48:38 +02:00
skip scam check on whitelisted tokens
This commit is contained in:
@@ -221,7 +221,8 @@ abstract class HomeSettingsViewModelBase with Store {
|
||||
}
|
||||
|
||||
// check if the contractAddress is in the defaultTokenAddresses
|
||||
bool isInWhitelist = defaultTokenAddresses.any((element) => element == contractAddress);
|
||||
bool isInWhitelist = defaultTokenAddresses
|
||||
.any((element) => element.toLowerCase() == contractAddress.toLowerCase());
|
||||
return isInWhitelist;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user