From 075cc55c8f56731389e5a0aca63c764f89b08524 Mon Sep 17 00:00:00 2001 From: ZhongFuze Date: Sun, 10 Nov 2024 04:58:14 +0800 Subject: [PATCH] [!] fix return "0x" identity --- src/resolver/ethereum.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resolver/ethereum.py b/src/resolver/ethereum.py index 5a27801..be61b7d 100644 --- a/src/resolver/ethereum.py +++ b/src/resolver/ethereum.py @@ -4,7 +4,7 @@ Author: Zella Zhong Date: 2024-10-06 18:41:34 LastEditors: Zella Zhong -LastEditTime: 2024-11-07 23:24:00 +LastEditTime: 2024-11-09 23:38:30 FilePath: /data_service/src/resolver/ethereum.py Description: ''' @@ -602,10 +602,10 @@ async def batch_query_profile_by_address_db(query_ids) -> typing.List[IdentityRe resolved_records = profile_record.resolved_records records = [] if resolved_records: - for coin_type, addr in resolved_records.items(): + for coin_type, coin_type_addr in resolved_records.items(): if coin_type in CoinTypeMap: - if addr != "0x": - records.append(Address(network=CoinTypeMap[coin_type], address=addr)) + if coin_type_addr != "0x": + records.append(Address(network=CoinTypeMap[coin_type], address=coin_type_addr)) network = None address = profile_record.resolved_address