diff --git a/utils/slither_format/format_constant_function.py b/utils/slither_format/format_constant_function.py index 15154463a..13bc725a0 100644 --- a/utils/slither_format/format_constant_function.py +++ b/utils/slither_format/format_constant_function.py @@ -13,7 +13,7 @@ class FormatConstantFunction: if not Found: for function in contract.functions: if contract.name == element['contract']['name'] and function.name == element['name']: - FormatConstantFunction.create_patch(slither, patches, element['source_mapping']['filename'], ["view","pure","constant"], "", int(function.parameters_src.split(':')[0]), int(function.returns_src.split(':')[0])) + FormatConstantFunction.create_patch(slither, patches, element['source_mapping']['filename_absolute'], ["view","pure","constant"], "", int(function.parameters_src.split(':')[0]), int(function.returns_src.split(':')[0])) Found = True @staticmethod