ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Function Parameter Range and Edge Cases
2
3
4
5
6
Data TypeValue RangeEdge Cases
7
booltrue or falseNone
8
uint0 to 2^256-10, 2^256-1 (max value), negative numbers (not valid)
9
int-2^255 to 2^255-1-2^255, 2^255-1, 0
10
addressEthereum address formatValid address, address(0), address containing EVM code, address of target contract, address of agent in the smart contract, address of a contract attacking the target contract
11
bytesDynamic array of bytesEmpty byte array, large byte array
12
bytes1 to bytes32Fixed-size byte arraysAll zeros, all ones, partially filled array
13
stringDynamic UTF-8 encoded stringEmpty string, very long string
14
enumUser-defined constant valuesAll possible enum values
15
ufixed0 to 2^128 with 18 decimal placesMax and min values, edge cases with decimal places
16
fixed-2^127 to 2^127 with 18 decimal placesMax and min values, edge cases with decimal places
17
mappingKey-value storeExisting key, non-existing key
18
arrayArrays with fixed or dynamic sizesEmpty array, full array
19
structUser-defined composite typeDefault and non-default values, struct missing a member
20
functionFunction typeValid and invalid function references
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
89
90
91
92
93
94
95
96
97
98
99
100