- Notifications
You must be signed in to change notification settings - Fork 226
/
Copy pathDebuggable.sol
32 lines (25 loc) · 687 Bytes
/
Debuggable.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
pragma solidity^0.4.18;
/// @title aid development, should not be released into final version
contractDebuggable {
event Logui(stringlabel, uint256value);
event Logi(stringlabel, int256value);
function logui64(strings, uint64x) internal {
Logui(s, uint256(x));
}
function logui256(strings, uint256x) internal {
Logui(s, x);
}
function logi256(strings, int256x) internal {
Logi(s, x);
}
function logb(strings, boolb) internal {
uint256 n =0;
if (b) {
n =1;
}
Logui(s, n);
}
function timeNow() publicviewreturns (uint256) {
returnnow;
}
}