Merge pull request #796 from crytic/dev-fix-0.7-parsing

Fix expression parsing for solc > 0.7
pull/810/head
Feist Josselin 4 years ago committed by GitHub
commit 29524f920e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/solc_parsing/declarations/function.py

@ -895,7 +895,7 @@ class FunctionSolc:
return_node = self._new_node(NodeType.RETURN, statement["src"])
link_underlying_nodes(node, return_node)
if self.is_compact_ast:
if statement["expression"]:
if statement.get("expression", None):
return_node.add_unparsed_expression(statement["expression"])
else:
if (

Loading…
Cancel
Save