Removed detection of mapping type

pull/1022/head
Tadashi 3 years ago
parent 6a4b97b7a7
commit bc0cf5e084
  1. 3
      slither/detectors/functions/external_function.py

@ -1,6 +1,5 @@
from array import ArrayType from array import ArrayType
from slither.core.declarations.structure import Structure from slither.core.declarations.structure import Structure
from slither.core.solidity_types.mapping_type import MappingType
from slither.core.solidity_types.user_defined_type import UserDefinedType from slither.core.solidity_types.user_defined_type import UserDefinedType
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification
from slither.slithir.operations import SolidityCall from slither.slithir.operations import SolidityCall
@ -111,8 +110,6 @@ class ExternalFunction(AbstractDetector):
def is_reference_type(parameter): def is_reference_type(parameter):
if isinstance(parameter.type, ArrayType): if isinstance(parameter.type, ArrayType):
return True return True
if isinstance(parameter.type, MappingType):
return True
if isinstance(parameter.type, UserDefinedType) and isinstance( if isinstance(parameter.type, UserDefinedType) and isinstance(
parameter.type.type, Structure parameter.type.type, Structure
): ):

Loading…
Cancel
Save