|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|