Skip to content

Commit

Permalink
Fix is_storage for calldata variables
Browse files Browse the repository at this point in the history
  • Loading branch information
smonicas committed Mar 27, 2023
1 parent 3c55228 commit cea5d64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slither/core/variables/local_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def is_storage(self) -> bool:
"""
if self.location == "memory":
return False
if self.location == "calldata":
return False
# Use by slithIR SSA
if self.location == "reference_to_storage":
return False
Expand Down

0 comments on commit cea5d64

Please sign in to comment.