Fix parsing super call expression

pull/2151/head
Simone 1 year ago
parent 0501fefa45
commit cc9e0a568e
  1. 2
      slither/solc_parsing/expressions/expression_parsing.py

@ -175,7 +175,7 @@ def parse_call(
called = parse_expression(children[0], caller_context)
arguments = [parse_expression(a, caller_context) for a in children[1::]]
if isinstance(called, SuperCallExpression):
if isinstance(called, SuperIdentifier):
sp = SuperCallExpression(called, arguments, type_return)
sp.set_offset(expression["src"], caller_context.compilation_unit)
return sp

Loading…
Cancel
Save