From 1b8210159ef2f8b74525df6af82ba5686f4133c8 Mon Sep 17 00:00:00 2001 From: Josselin Date: Sun, 12 Jul 2020 11:19:17 +0200 Subject: [PATCH] Update documentation of state_variables_ordered (breaking change) --- slither/core/declarations/contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slither/core/declarations/contract.py b/slither/core/declarations/contract.py index 992e2d853..18ed5ac10 100644 --- a/slither/core/declarations/contract.py +++ b/slither/core/declarations/contract.py @@ -54,7 +54,7 @@ class Contract(ChildSlither, SourceMapping): self._structures: Dict[str, "Structure"] = {} self._events: Dict[str, "Event"] = {} self._variables: Dict[str, "StateVariable"] = {} - self._variables_ordered: List["StateVariable"] = [] # contain also shadowed variables + self._variables_ordered: List["StateVariable"] = [] self._modifiers: Dict[str, "Modifier"] = {} self._functions: Dict[str, "Function"] = {} self._linearizedBaseContracts = List[int] @@ -255,7 +255,7 @@ class Contract(ChildSlither, SourceMapping): @property def state_variables_ordered(self) -> List["StateVariable"]: """ - list(StateVariable): List of the state variables by order of declaration. Contains also shadowed variables + list(StateVariable): List of the state variables by order of declaration. """ return list(self._variables_ordered)