diff --git a/slither/__main__.py b/slither/__main__.py index 808bc5e32..3be86abf6 100644 --- a/slither/__main__.py +++ b/slither/__main__.py @@ -246,7 +246,7 @@ def main_impl(all_detector_classes, all_printer_classes): number_contracts = 0 results = [] if args.splitted and args.solc_ast: - results = process_files(filenames, args, detector_classes, printer_classes) + (results, number_contracts) = process_files(filenames, args, detector_classes, printer_classes) else: for filename in filenames: (results_tmp, number_contracts_tmp) = process(filename, args, detector_classes, printer_classes)