diff --git a/solidity_examples/reentrancy.sol b/solidity_examples/reentrancy.sol deleted file mode 100644 index 4e8ee088..00000000 --- a/solidity_examples/reentrancy.sol +++ /dev/null @@ -1,22 +0,0 @@ -contract Reentrancy { - - mapping(address => uint) public balances; - - function donate(address _to) public payable { - balances[_to] += msg.value; - } - - function balanceOf(address _who) public constant returns (uint balance) { - return balances[_who]; - } - - function withdraw(uint _amount) public { - if(balances[msg.sender] >= _amount) { - if (msg.sender.call.value(_amount)()) { - balances[msg.sender] -= _amount; - } - } - } - - function() payable {} -} \ No newline at end of file