From 91b8b7da933e7a13e790a7a0c8861a961239001f Mon Sep 17 00:00:00 2001 From: Josselin Date: Thu, 27 Jun 2019 16:17:51 +0200 Subject: [PATCH] Fix typo --- utils/slither_format/formatters/naming_convention.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/slither_format/formatters/naming_convention.py b/utils/slither_format/formatters/naming_convention.py index 6b4f3ec7b..2daa22530 100644 --- a/utils/slither_format/formatters/naming_convention.py +++ b/utils/slither_format/formatters/naming_convention.py @@ -664,7 +664,7 @@ def _create_patch_state_variable_uses(slither, result, element): modify_loc_start = int(v.source_mapping['start']) modify_loc_end = int(v.source_mapping['start']) + int(v.source_mapping['length']) f_function = fm.source_mapping['filename_absolute'] - in_file_str = slither.f_function[f_function].encode('utf-8') + in_file_str = slither.source_code[f_function].encode('utf-8') old_str_of_interest = in_file_str[modify_loc_start:modify_loc_end] if (element['additional_fields']['target'] == "variable_constant"): # Convert constant state variables to upper case