diff --git a/slither/detectors/attributes/locked_ether.py b/slither/detectors/attributes/locked_ether.py index 00cdcf596..a2fe6a1c3 100644 --- a/slither/detectors/attributes/locked_ether.py +++ b/slither/detectors/attributes/locked_ether.py @@ -5,7 +5,7 @@ from slither.detectors.abstract_detector import (AbstractDetector, DetectorClassification) from slither.slithir.operations import (HighLevelCall, LowLevelCall, Send, - Transfer) + Transfer, NewContract) class LockedEther(AbstractDetector): @@ -28,7 +28,7 @@ class LockedEther(AbstractDetector): return False for node in function.nodes: for ir in node.irs: - if isinstance(ir, (Send, Transfer, HighLevelCall, LowLevelCall)): + if isinstance(ir, (Send, Transfer, HighLevelCall, LowLevelCall, NewContract)): if ir.call_value and ir.call_value != 0: return False if isinstance(ir, (LowLevelCall)):