diff --git a/fuzzing_cli/fuzz/ide/hardhat.py b/fuzzing_cli/fuzz/ide/hardhat.py index 313731e..d2fa989 100644 --- a/fuzzing_cli/fuzz/ide/hardhat.py +++ b/fuzzing_cli/fuzz/ide/hardhat.py @@ -147,7 +147,7 @@ def process_artifacts(self) -> Tuple[Dict[str, List[Contract]], Dict[str, Source source_ids.append(source["id"]) source_paths[str(source["id"])] = source_name - if source_name in source_files: + if str(Path(source_name)) in source_files: # we need to store the source file content and ast node for each source file # belonging to the current build_info file. Same source file can be present in multiple # build_info files, so we need to store the source file content and ast only from