Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slither/tests/detectors/too-many-digits/0.7.6/too_many_digits.sol.0.7.6.T...

995 lines
47 KiB

[
[
{
"elements": [
{
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
},
{
"type": "node",
"name": "x2 = 0x0000000000001",
"source_mapping": {
"start": 211,
"length": 25,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
11
],
"starting_column": 9,
"ending_column": 34
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
}
}
}
],
"description": "C.f() (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x2 = 0x0000000000001 (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#11)\n",
"markdown": "[C.f()](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15) uses literals with too many digits:\n\t- [x2 = 0x0000000000001](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L11)\n",
"first_markdown_element": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15",
"id": "41a60e2fb1f3a88adafd67ca77db4633849be26e1b8b9973b8bf9e8ea5a9d024",
"check": "too-many-digits",
"impact": "Informational",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
},
{
"type": "node",
"name": "x3 = 1000000000000000000",
"source_mapping": {
"start": 246,
"length": 29,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
12
],
"starting_column": 9,
"ending_column": 38
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
}
}
}
],
"description": "C.f() (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x3 = 1000000000000000000 (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#12)\n",
"markdown": "[C.f()](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15) uses literals with too many digits:\n\t- [x3 = 1000000000000000000](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L12)\n",
"first_markdown_element": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15",
"id": "4876b33b2a9fb13f6def960f7f9060cbf858f117079526017b1b35a928771680",
"check": "too-many-digits",
"impact": "Informational",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
},
{
"type": "node",
"name": "x1 = 0x000001",
"source_mapping": {
"start": 183,
"length": 18,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
10
],
"starting_column": 9,
"ending_column": 27
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
}
}
}
],
"description": "C.f() (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x1 = 0x000001 (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#10)\n",
"markdown": "[C.f()](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15) uses literals with too many digits:\n\t- [x1 = 0x000001](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L10)\n",
"first_markdown_element": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15",
"id": "a053c2f439e1e4ac84469e1aab54f4403d4ab14bf81bae6e7a3d2e489b3514bd",
"check": "too-many-digits",
"impact": "Informational",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
},
{
"type": "node",
"name": "x4 = 100000",
"source_mapping": {
"start": 285,
"length": 16,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
13
],
"starting_column": 9,
"ending_column": 25
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "f",
"source_mapping": {
"start": 151,
"length": 195,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
9,
10,
11,
12,
13,
14,
15
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "f()"
}
}
}
}
],
"description": "C.f() (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#9-15) uses literals with too many digits:\n\t- x4 = 100000 (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#13)\n",
"markdown": "[C.f()](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15) uses literals with too many digits:\n\t- [x4 = 100000](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L13)\n",
"first_markdown_element": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L9-L15",
"id": "cb3b2fdb9be68cc3ddd7d4eb949471b64b62cf93ba43c377682cbdca2f81321e",
"check": "too-many-digits",
"impact": "Informational",
"confidence": "Medium"
},
{
"elements": [
{
"type": "function",
"name": "h",
"source_mapping": {
"start": 430,
"length": 113,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
20,
21,
22,
23,
24
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "h()"
}
},
{
"type": "node",
"name": "x2 = 100000",
"source_mapping": {
"start": 486,
"length": 16,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
22
],
"starting_column": 9,
"ending_column": 25
},
"type_specific_fields": {
"parent": {
"type": "function",
"name": "h",
"source_mapping": {
"start": 430,
"length": 113,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
20,
21,
22,
23,
24
],
"starting_column": 5,
"ending_column": 6
},
"type_specific_fields": {
"parent": {
"type": "contract",
"name": "C",
"source_mapping": {
"start": 2,
"length": 917,
"filename_used": "/GENERIC_PATH",
"filename_relative": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"filename_absolute": "/GENERIC_PATH",
"filename_short": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol",
"is_dependency": false,
"lines": [
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
],
"starting_column": 1,
"ending_column": 2
}
},
"signature": "h()"
}
}
}
}
],
"description": "C.h() (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#20-24) uses literals with too many digits:\n\t- x2 = 100000 (tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#22)\n",
"markdown": "[C.h()](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L20-L24) uses literals with too many digits:\n\t- [x2 = 100000](tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L22)\n",
"first_markdown_element": "tests/detectors/too-many-digits/0.7.6/too_many_digits.sol#L20-L24",
"id": "dc1ea18f753ecea6946e89eb6676abb3813a16bc6a407e6a54ce87beeee261af",
"check": "too-many-digits",
"impact": "Informational",
"confidence": "Medium"
}
]
]