|
|
@ -204,6 +204,7 @@ class Function( |
|
|
|
self._solidity_signature: Optional[str] = None |
|
|
|
self._solidity_signature: Optional[str] = None |
|
|
|
self._signature_str: Optional[str] = None |
|
|
|
self._signature_str: Optional[str] = None |
|
|
|
self._canonical_name: Optional[str] = None |
|
|
|
self._canonical_name: Optional[str] = None |
|
|
|
|
|
|
|
self._is_protected: Optional[bool] = None |
|
|
|
|
|
|
|
|
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
@ -1427,11 +1428,14 @@ class Function( |
|
|
|
(bool) |
|
|
|
(bool) |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
if self.is_constructor: |
|
|
|
if self._is_protected is None: |
|
|
|
return True |
|
|
|
if self.is_constructor: |
|
|
|
conditional_vars = self.all_conditional_solidity_variables_read(include_loop=False) |
|
|
|
self._is_protected = True |
|
|
|
args_vars = self.all_solidity_variables_used_as_args() |
|
|
|
return True |
|
|
|
return SolidityVariableComposed("msg.sender") in conditional_vars + args_vars |
|
|
|
conditional_vars = self.all_conditional_solidity_variables_read(include_loop=False) |
|
|
|
|
|
|
|
args_vars = self.all_solidity_variables_used_as_args() |
|
|
|
|
|
|
|
self._is_protected = SolidityVariableComposed("msg.sender") in conditional_vars + args_vars |
|
|
|
|
|
|
|
return self._is_protected |
|
|
|
|
|
|
|
|
|
|
|
# endregion |
|
|
|
# endregion |
|
|
|
################################################################################### |
|
|
|
################################################################################### |
|
|
|