Skip to content

Commit

Permalink
[!] fix return "0x" identity
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Nov 9, 2024
1 parent 8b0165f commit 075cc55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/resolver/ethereum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
'''
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 075cc55

Please sign in to comment.