Skip to content

Commit

Permalink
LockedEther: Add NewContract to the list of msg.value checks (close #114
Browse files Browse the repository at this point in the history
)
  • Loading branch information
montyly committed Dec 23, 2018
1 parent 7f93370 commit 6124a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slither/detectors/attributes/locked_ether.py
Expand Up @@ -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):
Expand All @@ -28,7 +28,7 @@ def do_no_send_ether(contract):
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)):
Expand Down

0 comments on commit 6124a46

Please sign in to comment.