From ced9498f5627fb216f22fee60c40332351d030bc Mon Sep 17 00:00:00 2001 From: rajeevgopalakrishna Date: Mon, 13 May 2019 15:25:42 +0530 Subject: [PATCH] Updates format_external_function to use filename_absolute. test_external_function passes. --- utils/slither_format/format_external_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/slither_format/format_external_function.py b/utils/slither_format/format_external_function.py index 57793aa7d..389b0d06b 100644 --- a/utils/slither_format/format_external_function.py +++ b/utils/slither_format/format_external_function.py @@ -14,7 +14,7 @@ class FormatExternalFunction: # to external because external function parameters are allocated in calldata region which is # non-modifiable. See https://solidity.readthedocs.io/en/develop/types.html#data-location if not FormatExternalFunction.function_parameters_written(function): - FormatExternalFunction.create_patch(slither, patches, element['source_mapping']['filename'], "public", "external", int(function.parameters_src.split(':')[0]), int(function.returns_src.split(':')[0])) + FormatExternalFunction.create_patch(slither, patches, element['source_mapping']['filename_absolute'], "public", "external", int(function.parameters_src.split(':')[0]), int(function.returns_src.split(':')[0])) Found = True break