diff --git a/scripts/bytecodecompare/prepare_report.js b/scripts/bytecodecompare/prepare_report.js index 451a67bb1..cba7a0800 100755 --- a/scripts/bytecodecompare/prepare_report.js +++ b/scripts/bytecodecompare/prepare_report.js @@ -100,7 +100,7 @@ for (const preset of presets) // JSON interface still returns contract metadata in case of an internal compiler error while // CLI interface does not. To make reports comparable we must force this case to be detected as // an error in both cases. - if (['UnimplementedFeatureError', 'CompilerError', 'CodeGenerationError'].includes(error['type'])) + if (['UnimplementedFeatureError', 'CompilerError', 'CodeGenerationError', 'YulException'].includes(error['type'])) { internalCompilerError = true break diff --git a/scripts/bytecodecompare/prepare_report.py b/scripts/bytecodecompare/prepare_report.py index b99e06b7d..4cf24bb8a 100755 --- a/scripts/bytecodecompare/prepare_report.py +++ b/scripts/bytecodecompare/prepare_report.py @@ -157,7 +157,7 @@ def parse_standard_json_output(source_file_name: Path, standard_json_output: str # CLI interface does not. To make reports comparable we must force this case to be detected as # an error in both cases. internal_compiler_error = any( - error['type'] in ['UnimplementedFeatureError', 'CompilerError', 'CodeGenerationError'] + error['type'] in ['UnimplementedFeatureError', 'CompilerError', 'CodeGenerationError', 'YulException'] for error in decoded_json_output.get('errors', {}) )