type_parsing: parse mapping values that contain ` ` like `struct SortedTroves.Node`

pull/730/head
Maximilian Krueger 4 years ago
parent e6f3293675
commit aa8653605c
  1. 2
      slither/solc_parsing/solidity_types/type_parsing.py

@ -133,7 +133,7 @@ def _find_from_type_name( # pylint: disable=too-many-locals,too-many-branches,t
if name.startswith("mapping("):
# nested mapping declared with var
if name.count("mapping(") == 1:
found = re.findall("mapping\(([a-zA-Z0-9\.]*) => ([a-zA-Z0-9\.\[\]]*)\)", name)
found = re.findall("mapping\(([a-zA-Z0-9\.]*) => ([ a-zA-Z0-9\.\[\]]*)\)", name)
else:
found = re.findall(
"mapping\(([a-zA-Z0-9\.]*) => (mapping\([=> a-zA-Z0-9\.\[\]]*\))\)", name,

Loading…
Cancel
Save