|
|
|
@ -38,7 +38,7 @@ Do not report reentrancies that don't involve Ether (see `reentrancy-no-eth`)""" |
|
|
|
|
```solidity |
|
|
|
|
function withdrawBalance(){ |
|
|
|
|
// 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])() ) ){ |
|
|
|
|
throw; |
|
|
|
|
} |
|
|
|
|