pull/815/head
Josselin 4 years ago
parent 2023f9997d
commit d40adea7f1
  1. 6
      slither/solc_parsing/expressions/expression_parsing.py

@ -898,8 +898,8 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres
# TODO explore more the changes introduced in 0.8 and the usage of pathNode/IdentifierPath # TODO explore more the changes introduced in 0.8 and the usage of pathNode/IdentifierPath
if "name" not in type_name: if "name" not in type_name:
assert 'pathNode' in type_name and 'name' in type_name['pathNode'] assert "pathNode" in type_name and "name" in type_name["pathNode"]
contract_name = type_name['pathNode']['name'] contract_name = type_name["pathNode"]["name"]
else: else:
contract_name = type_name["name"] contract_name = type_name["name"]
else: else:
@ -950,6 +950,6 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres
identifier.set_offset(src, caller_context.slither) identifier.set_offset(src, caller_context.slither)
return identifier return identifier
raise ParsingError('IdentifierPath not currently supported for the legacy ast') raise ParsingError("IdentifierPath not currently supported for the legacy ast")
raise ParsingError("Expression not parsed %s" % name) raise ParsingError("Expression not parsed %s" % name)

Loading…
Cancel
Save