From 30f26676053d3731b01c02e953359678c5207c20 Mon Sep 17 00:00:00 2001 From: Tiko7454 Date: Thu, 27 Jul 2023 15:00:23 +0400 Subject: [PATCH] changed function name --- slither/solc_parsing/declarations/function.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index a878cbb6a..f5107095a 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -1401,7 +1401,7 @@ class FunctionSolc(CallerContextExpression): ################################################################################### ################################################################################### - def __make_temporary_variable_declaration_node( + def __make_temporary_variable_declaration_node_from_condition( self, node_expression: "Expression", node_source_mapping: SourceMapping, @@ -1465,7 +1465,7 @@ class FunctionSolc(CallerContextExpression): has_cond = HasConditional(node.expression) if has_cond.result(): if node.is_conditional(): - temp_var_node, temp_var = self.__make_temporary_variable_declaration_node( + temp_var_node, temp_var = self.__make_temporary_variable_declaration_node_from_condition( node.expression, node.source_mapping, node.scope, @@ -1479,7 +1479,7 @@ class FunctionSolc(CallerContextExpression): begin_loop_node: Optional[Node] = self.__find_start_loop_in_nodes_fathers(if_loop_node) if begin_loop_node: # if BEGIN_LOOP is IF_LOOP's father, IF_LOOP represents `while` temp_var_node_pre_loop = temp_var_node - temp_var_node_during_loop, _ = self.__make_temporary_variable_declaration_node( + temp_var_node_during_loop, _ = self.__make_temporary_variable_declaration_node_from_condition( if_loop_node.expression, if_loop_node.source_mapping, if_loop_node.scope,