Skip to content

Commit

Permalink
Fix multiple try catch with same return var name
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed May 10, 2023
1 parent 6eb296c commit 2da5ee4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slither/solc_parsing/declarations/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,7 @@ def _construct_try_expression(self, externalCall: Dict, parameters_list: Dict) -
"name": parameters[0]["name"],
"nodeType": "Identifier",
"src": parameters[0]["src"],
"referencedDeclaration": parameters[0]["id"],
"typeDescriptions": parameters[0]["typeDescriptions"],
}
else:
Expand Down Expand Up @@ -713,6 +714,7 @@ def _construct_try_expression(self, externalCall: Dict, parameters_list: Dict) -
"name": p["name"],
"nodeType": "Identifier",
"src": p["src"],
"referencedDeclaration": p["id"],
"typeDescriptions": p["typeDescriptions"],
}
leftHandSide["components"].append(ident)
Expand Down

0 comments on commit 2da5ee4

Please sign in to comment.