Merge pull request #1706 from sidarth16/patch-2

Update reentrancy_eth.py
pull/1772/head
Feist Josselin 2 years ago committed by GitHub
commit 785699e70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/detectors/reentrancy/reentrancy_eth.py

@ -38,7 +38,7 @@ Do not report reentrancies that don't involve Ether (see `reentrancy-no-eth`)"""
```solidity ```solidity
function withdrawBalance(){ function withdrawBalance(){
// send userBalance[msg.sender] Ether to msg.sender // send userBalance[msg.sender] Ether to msg.sender
// if mgs.sender is a contract, it will call its fallback function // if msg.sender is a contract, it will call its fallback function
if( ! (msg.sender.call.value(userBalance[msg.sender])() ) ){ if( ! (msg.sender.call.value(userBalance[msg.sender])() ) ){
throw; throw;
} }

Loading…
Cancel
Save