wallet-fetcher: removing invalid limitation

Token with owner ad VOID_ADDRESS can be valid, example SAI

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2024-02-23 18:06:34 +01:00
parent ce27d3e0cb
commit ea863f8598
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
1 changed files with 0 additions and 2 deletions

View File

@ -13,8 +13,6 @@ def check_token_validity(tokenInfo):
raise Exception('Invalid token: decimal fields not present: %s', tokenInfo) raise Exception('Invalid token: decimal fields not present: %s', tokenInfo)
if tokenInfo.get("decimals") == INVALID_DECIMAL_NUMBER: if tokenInfo.get("decimals") == INVALID_DECIMAL_NUMBER:
raise Exception('Invalid token: decimal fields invalid: %s', tokenInfo) raise Exception('Invalid token: decimal fields invalid: %s', tokenInfo)
if "owner" in tokenInfo and tokenInfo.get("owner") == VOID_ADDRESS:
raise Exception('Invalid token: Owner address is void: %s', tokenInfo)
def extract_token(wallet_name, token_data): def extract_token(wallet_name, token_data):
description= 'No description available' if 'description' not in token_data['tokenInfo'] else token_data['tokenInfo']['description'] description= 'No description available' if 'description' not in token_data['tokenInfo'] else token_data['tokenInfo']['description']