From c25649eda03ff917717dbeb8a27636b9e2b3f38a Mon Sep 17 00:00:00 2001 From: rajeevgopalakrishna Date: Mon, 13 May 2019 12:12:42 +0530 Subject: [PATCH] Updates format_constant_function to use filename_absolute. test_constant_function passes. --- utils/slither_format/format_constant_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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