diff --git a/scripts/bytecodecompare/prepare_report.py b/scripts/bytecodecompare/prepare_report.py index d654569a4..744c6deb5 100755 --- a/scripts/bytecodecompare/prepare_report.py +++ b/scripts/bytecodecompare/prepare_report.py @@ -27,7 +27,7 @@ class FileReport: report = "" if self.contract_reports is None: - return f"{self.file_name}: \n" + return f"{self.file_name.as_posix()}: \n" for contract_report in self.contract_reports: bytecode = contract_report.bytecode if contract_report.bytecode is not None else '' @@ -35,8 +35,8 @@ class FileReport: # NOTE: Ignoring contract_report.file_name because it should always be either the same # as self.file_name (for Standard JSON) or just the '' placeholder (for CLI). - report += f"{self.file_name}:{contract_report.contract_name} {bytecode}\n" - report += f"{self.file_name}:{contract_report.contract_name} {metadata}\n" + report += f"{self.file_name.as_posix()}:{contract_report.contract_name} {bytecode}\n" + report += f"{self.file_name.as_posix()}:{contract_report.contract_name} {metadata}\n" return report