Call `handle_comment` in init method

pull/1517/head
webthethird 2 years ago
parent 61c67d8801
commit f1e653fb18
  1. 2
      slither/solc_parsing/declarations/contract.py

@ -65,8 +65,10 @@ class ContractSolc(CallerContextExpression):
# Export info # Export info
if self.is_compact_ast: if self.is_compact_ast:
self._contract.name = self._data["name"] self._contract.name = self._data["name"]
self._handle_comment(self._data)
else: else:
self._contract.name = self._data["attributes"][self.get_key()] self._contract.name = self._data["attributes"][self.get_key()]
self._handle_comment(self._data["attributes"])
self._contract.id = self._data["id"] self._contract.id = self._data["id"]

Loading…
Cancel
Save