@@ -6,8 +6,8 @@ contract TimeLockedWallet {
6
6
7
7
address public creator;
8
8
address public owner;
9
- uint public unlockDate;
10
- uint public createdAt;
9
+ uint256 public unlockDate;
10
+ uint256 public createdAt;
11
11
12
12
modifier onlyOwner {
13
13
require (msg .sender == owner);
@@ -17,7 +17,7 @@ contract TimeLockedWallet {
17
17
function TimeLockedWallet (
18
18
address _creator ,
19
19
address _owner ,
20
- uint _unlockDate
20
+ uint256 _unlockDate
21
21
) public {
22
22
creator = _creator;
23
23
owner = _owner;
@@ -43,16 +43,16 @@ contract TimeLockedWallet {
43
43
require (now >= unlockDate);
44
44
ERC20 token = ERC20 (_tokenContract);
45
45
//now send all the token balance
46
- uint tokenBalance = token.balanceOf (this );
46
+ uint256 tokenBalance = token.balanceOf (this );
47
47
token.transfer (owner, tokenBalance);
48
48
WithdrewTokens (_tokenContract, msg .sender , tokenBalance);
49
49
}
50
50
51
- function info () public view returns (address , address , uint , uint , uint ) {
51
+ function info () public view returns (address , address , uint256 , uint256 , uint256 ) {
52
52
return (creator, owner, unlockDate, createdAt, this .balance);
53
53
}
54
54
55
- event Received (address from , uint amount );
56
- event Withdrew (address to , uint amount );
57
- event WithdrewTokens (address tokenContract , address to , uint amount );
55
+ event Received (address from , uint256 amount );
56
+ event Withdrew (address to , uint256 amount );
57
+ event WithdrewTokens (address tokenContract , address to , uint256 amount );
58
58
}
0 commit comments