Skip to content

Commit

Permalink
fix:[core2c] detection error msg update
Browse files Browse the repository at this point in the history
  • Loading branch information
lz-aug committed Feb 15, 2023
1 parent b746e0a commit c877671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core2c/api/v1/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ async def save_token_detection_result(content, token_address, user_detection_id)
try:
result = content.get("result").get(token_address.lower())
if not result:
msg = "Something wrong,please enter the correct Token address."
msg = "Something wrong, please check(There may be the following reasons: wrong chain, wrong address, the contract is not open source)"
token.error = msg
await token.save()
return False, _, msg
is_open_source = result.get("is_open_source")
if is_open_source == "0":
msg = "This contract has not been open-sourced yet"
msg = "Something wrong, please check(There may be the following reasons: wrong chain, wrong address, the contract is not open source)"
token.error = msg
await token.save()
return False, _, msg
Expand Down

0 comments on commit c877671

Please sign in to comment.