Skip to content

Commit

Permalink
use state_variables_ordered API
Browse files Browse the repository at this point in the history
it should be used over `(state_)variables` as it includes inherited, private variables, too.
fixes #1322
  • Loading branch information
0xalpharush authored Oct 26, 2022
1 parent 463df49 commit 4479b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/tools/read_storage/read_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
)
Expand Down

0 comments on commit 4479b61

Please sign in to comment.