diff --git a/slither/tools/read_storage/read_storage.py b/slither/tools/read_storage/read_storage.py index fd881c05e6..bb662c4d5e 100644 --- a/slither/tools/read_storage/read_storage.py +++ b/slither/tools/read_storage/read_storage.py @@ -253,7 +253,7 @@ def get_all_storage_variables(self, func: Callable = None) -> None: func, [ (contract, var) - for var in contract.variables + for var in contract.state_variables_ordered if not var.is_constant and not var.is_immutable ], )