Skip to content

Commit

Permalink
Update storage_variables.py for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
nisedo authored Feb 17, 2025
1 parent 3cc1fa2 commit 81e4140
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slither/printers/summary/storage_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ def output(self, _filename) -> Output:

storage_vars = sorted(
storage_vars,
key=lambda x: contract.compilation_unit.storage_layout_of(contract, x)[0],
key=lambda x, contract=contract: contract.compilation_unit.storage_layout_of(
contract, x
)[0],
)

for v in storage_vars:
Expand Down

0 comments on commit 81e4140

Please sign in to comment.