diff --git a/src/util/etherscan.py b/src/util/etherscan.py index 6daf4c1..fc5f3cd 100644 --- a/src/util/etherscan.py +++ b/src/util/etherscan.py @@ -180,6 +180,7 @@ async def fetch_verified_sources(explorer_url: str, target_path: str) -> bool: """ Fetch verified sources from an EVM explorer and store them locally. """ + explorer = EVMExplorer() try: # Clean URL by removing query parameters and #code suffix diff --git a/src/util/github.py b/src/util/github.py index 583bda5..4dd41da 100644 --- a/src/util/github.py +++ b/src/util/github.py @@ -37,6 +37,9 @@ async def fetch_github_file(url: str, target_path: str) -> bool: Returns: bool: True if file was successfully fetched and stored """ + + logger.debug(f"Fetching GitHub file: {url} to {target_path}") + try: # Convert web URL to raw content URL raw_url = url.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/").replace("/tree/", "/") @@ -75,6 +78,9 @@ async def fetch_github_repo(url: str, target_path: str) -> bool: Returns: bool: True if repo was successfully fetched and stored """ + + logger.debug(f"Fetching GitHub repo: {url} to {target_path}") + try: # Extract owner and repo from URL parts = url.rstrip("/").split("/")