-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sol
More file actions
88 lines (62 loc) · 1.57 KB
/
Copy pathtest.sol
File metadata and controls
88 lines (62 loc) · 1.57 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// this is comment remove test!!
contract Owned{
address owner;
address test;
uint256 A;
address B = address(0x1234);
address C = msg.sender;
uint256 D = 10e18;
mapping(address=>uint256) test_balance;
constructor(){
owner = msg.sender;
}
modifier onlyOwner(){
require(owner == msg.sender);
_;
}
/*
function test_owner_01(){
require( owner == msg.sender );
}
modifier test_owner_02(){
if( owner != msg.sender) throw;
_;
}
*/
}
contract test is Owned{
mapping(address=>uint256) public balance;
string public a = "This is comment remove test!! https://123123123";
event Transfer(address from, address to, uint256 amount);
constructor(){
balance[msg.sender] = 10e18;
emit Transfer(address(0), msg.sender, 10e18);
}
function transfer(address _to, uint256 amount) public {
require(balance[msg.sender] >= amount);
require(_to != address(0));
balance[msg.sender] -= amount;
balance[_to] += amount;
emit Transfer(msg.sender, _to, amount);
}
function mint(address _to, uint256 amount) onlyOwner external{
mint_(_to, amount);
}
function mint_(address _to, uint256 amount) internal { //fuck regx
balance[_to] += amount;
emit Transfer(address(0), _to, amount);
}
function rand(uint256 num) internal returns(uint256){ //test
return uint256(blockhash(block.number)) % num;
}
/* 123 */
/**
* asdf
*/
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
///123123
//fuck fuckuck
}