File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ def is_storage(self) -> bool:
61
61
# pylint: disable=import-outside-toplevel
62
62
from slither .core .solidity_types .array_type import ArrayType
63
63
64
- if self .location == VariableLocation .MEMORY :
64
+ if self .location == VariableLocation .MEMORY . value :
65
65
return False
66
- if self .location == VariableLocation .CALLDATA :
66
+ if self .location == VariableLocation .CALLDATA . value :
67
67
return False
68
68
# Use by slithIR SSA
69
- if self .location == VariableLocation .REFERENCE_TO_STORAGE :
69
+ if self .location == VariableLocation .REFERENCE_TO_STORAGE . value :
70
70
return False
71
- if self .location == VariableLocation .STORAGE :
71
+ if self .location == VariableLocation .STORAGE . value :
72
72
return True
73
73
74
74
if isinstance (self .type , (ArrayType , MappingType )):
Original file line number Diff line number Diff line change @@ -44,15 +44,15 @@ def is_stored(self) -> bool:
44
44
return (
45
45
not self ._is_constant
46
46
and not self ._is_immutable
47
- and not self ._location == VariableLocation .TRANSIENT
47
+ and not self ._location == VariableLocation .TRANSIENT . value
48
48
)
49
49
50
50
@property
51
51
def is_transient (self ) -> bool :
52
52
"""
53
53
Checks if the state variable is transient. A transient variable can not be constant or immutable.
54
54
"""
55
- return self ._location == VariableLocation .TRANSIENT
55
+ return self ._location == VariableLocation .TRANSIENT . value
56
56
57
57
# endregion
58
58
###################################################################################
You can’t perform that action at this time.
0 commit comments