Skip to content

Commit

Permalink
Merge pull request #314 from crytic/dev-fix-reentrancy
Browse files Browse the repository at this point in the history
Fix reentrancy detector
  • Loading branch information
montyly authored Aug 16, 2019
2 parents c417c04 + e2ed64c commit f608e98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slither/slithir/operations/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def __init__(self, destination, value, result):

self._call_value = value

def can_send_eth(self):
return True

@property
def call_value(self):
return self._call_value
Expand Down
2 changes: 2 additions & 0 deletions slither/slithir/operations/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def __init__(self, destination, value):

self._call_value = value

def can_send_eth(self):
return True

@property
def call_value(self):
Expand Down

0 comments on commit f608e98

Please sign in to comment.