Merge branch 'master' of github.com:crytic/slither

pull/848/head
Josselin 4 years ago
commit 86c1e8a988
  1. 4
      slither/solc_parsing/expressions/expression_parsing.py

@ -729,7 +729,7 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres
assert "children" not in expression
if is_compact_ast:
value = expression["value"]
value = expression.get("value", None)
if value:
if "subdenomination" in expression and expression["subdenomination"]:
subdenomination = expression["subdenomination"]
@ -742,7 +742,7 @@ def parse_expression(expression: Dict, caller_context: CallerContext) -> "Expres
if expression["kind"] == "number":
type_candidate = "int_const"
else:
value = expression["attributes"]["value"]
value = expression["attributes"].get("value", None)
if value:
if (
"subdenomination" in expression["attributes"]

Loading…
Cancel
Save