Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Mar 29, 2021
1 parent 2023f99 commit d40adea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slither/solc_parsing/expressions/expression_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
if "name" not in type_name:
assert 'pathNode' in type_name and 'name' in type_name['pathNode']
contract_name = type_name['pathNode']['name']
assert "pathNode" in type_name and "name" in type_name["pathNode"]
contract_name = type_name["pathNode"]["name"]
else:
contract_name = type_name["name"]
else:
Expand Down Expand Up @@ -950,6 +950,6 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres
identifier.set_offset(src, caller_context.slither)
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)

0 comments on commit d40adea

Please sign in to comment.