xyizko commited on
Commit
acf3e83
·
verified ·
1 Parent(s): 89882f1

Update app.py

Browse files

- Fix docstring errors

Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -23,16 +23,16 @@ def infer_chain(address):
23
  else:
24
  return "Unknown"
25
 
26
- # Define the tool with a detailed docstring
27
  @tool
28
  def check_flagged_address(address: str) -> str:
29
- """Checks if a cryptocurrency address is flagged in the Bybit hack database and identifies its blockchain.
30
-
31
  Args:
32
- address (str): The cryptocurrency wallet address to verify, e.g., '0x...' for Ethereum, 'bc1q...' for Bitcoin, or 'T...' for Tron.
33
-
34
  Returns:
35
- str: A message indicating whether the address is flagged as part of the Bybit hack and its associated blockchain.
36
  """
37
  chain = infer_chain(address)
38
  for entry in flagged_addresses:
 
23
  else:
24
  return "Unknown"
25
 
26
+ # Define the tool with a strictly formatted docstring
27
  @tool
28
  def check_flagged_address(address: str) -> str:
29
+ """Check if a cryptocurrency address is flagged in the Bybit hack database.
30
+
31
  Args:
32
+ address: String representing the cryptocurrency address to check.
33
+
34
  Returns:
35
+ String indicating if the address is flagged and its blockchain.
36
  """
37
  chain = infer_chain(address)
38
  for entry in flagged_addresses: