mirror of
https://github.com/status-im/airbyte-custom-connector.git
synced 2025-02-17 03:16:36 +00:00
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:
parent
ce27d3e0cb
commit
ea863f8598
@ -13,8 +13,6 @@ def check_token_validity(tokenInfo):
|
||||
raise Exception('Invalid token: decimal fields not present: %s', tokenInfo)
|
||||
if tokenInfo.get("decimals") == INVALID_DECIMAL_NUMBER:
|
||||
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):
|
||||
description= 'No description available' if 'description' not in token_data['tokenInfo'] else token_data['tokenInfo']['description']
|
||||
|
Loading…
x
Reference in New Issue
Block a user