mirror of https://github.com/crytic/slither
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.
457 lines
21 KiB
457 lines
21 KiB
[
|
|
[
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "text2",
|
|
"source_mapping": {
|
|
"start": 305,
|
|
"length": 20,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
12
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "A",
|
|
"source_mapping": {
|
|
"start": 1,
|
|
"length": 441,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "A.text2 (tests/detectors/constable-states/0.6.11/const_state_variables.sol#12) should be constant \n",
|
|
"markdown": "[A.text2](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L12) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L12",
|
|
"id": "2f06e04545cea7e7a8998c65d5419f335bf2579a6ce6a832eac9c87392fd5c1a",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "should_be_constant_2",
|
|
"source_mapping": {
|
|
"start": 811,
|
|
"length": 33,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
41
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 38
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "Bad",
|
|
"source_mapping": {
|
|
"start": 718,
|
|
"length": 539,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
37,
|
|
38,
|
|
39,
|
|
40,
|
|
41,
|
|
42,
|
|
43,
|
|
44,
|
|
45,
|
|
46,
|
|
47,
|
|
48,
|
|
49,
|
|
50,
|
|
51,
|
|
52,
|
|
53,
|
|
54,
|
|
55,
|
|
56,
|
|
57
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Bad.should_be_constant_2 (tests/detectors/constable-states/0.6.11/const_state_variables.sol#41) should be constant \n",
|
|
"markdown": "[Bad.should_be_constant_2](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L41) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L41",
|
|
"id": "3a8b682f7960750cd8228d6cd3d0bb5d7d6f9faaf1a044de2fa7069d8e475af2",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "mySistersAddress",
|
|
"source_mapping": {
|
|
"start": 468,
|
|
"length": 76,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
24
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 81
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "B",
|
|
"source_mapping": {
|
|
"start": 445,
|
|
"length": 271,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30,
|
|
31,
|
|
32,
|
|
33,
|
|
34,
|
|
35
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "B.mySistersAddress (tests/detectors/constable-states/0.6.11/const_state_variables.sol#24) should be constant \n",
|
|
"markdown": "[B.mySistersAddress](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L24) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L24",
|
|
"id": "3b5bff93954a48a79387e7981e8c45d78edc575a0988a10f1c7f439b9f930539",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "myFriendsAddress",
|
|
"source_mapping": {
|
|
"start": 104,
|
|
"length": 76,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
5
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 81
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "A",
|
|
"source_mapping": {
|
|
"start": 1,
|
|
"length": 441,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "A.myFriendsAddress (tests/detectors/constable-states/0.6.11/const_state_variables.sol#5) should be constant \n",
|
|
"markdown": "[A.myFriendsAddress](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L5) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L5",
|
|
"id": "52fd72f6870c4b504d1bcf9fb44249658e2077474d66208a33a47d2668b8db49",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "should_be_constant",
|
|
"source_mapping": {
|
|
"start": 763,
|
|
"length": 42,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
40
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 47
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "Bad",
|
|
"source_mapping": {
|
|
"start": 718,
|
|
"length": 539,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
37,
|
|
38,
|
|
39,
|
|
40,
|
|
41,
|
|
42,
|
|
43,
|
|
44,
|
|
45,
|
|
46,
|
|
47,
|
|
48,
|
|
49,
|
|
50,
|
|
51,
|
|
52,
|
|
53,
|
|
54,
|
|
55,
|
|
56,
|
|
57
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Bad.should_be_constant (tests/detectors/constable-states/0.6.11/const_state_variables.sol#40) should be constant \n",
|
|
"markdown": "[Bad.should_be_constant](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L40) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L40",
|
|
"id": "87097c03d57b72ad7c15336eb44e5a30054c50f8daff32e08bc4fbd97852961c",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "should_be_constant_3",
|
|
"source_mapping": {
|
|
"start": 850,
|
|
"length": 38,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
42
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 43
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "Bad",
|
|
"source_mapping": {
|
|
"start": 718,
|
|
"length": 539,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
37,
|
|
38,
|
|
39,
|
|
40,
|
|
41,
|
|
42,
|
|
43,
|
|
44,
|
|
45,
|
|
46,
|
|
47,
|
|
48,
|
|
49,
|
|
50,
|
|
51,
|
|
52,
|
|
53,
|
|
54,
|
|
55,
|
|
56,
|
|
57
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Bad.should_be_constant_3 (tests/detectors/constable-states/0.6.11/const_state_variables.sol#42) should be constant \n",
|
|
"markdown": "[Bad.should_be_constant_3](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L42) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L42",
|
|
"id": "8e991c1370b1adb10f01f2d7e48f341dee92a98b91b56ccb291d9149d2da97d0",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "test",
|
|
"source_mapping": {
|
|
"start": 209,
|
|
"length": 20,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
8
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "A",
|
|
"source_mapping": {
|
|
"start": 1,
|
|
"length": 441,
|
|
"filename_relative": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"filename_absolute": "/GENERIC_PATH",
|
|
"filename_short": "tests/detectors/constable-states/0.6.11/const_state_variables.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "A.test (tests/detectors/constable-states/0.6.11/const_state_variables.sol#8) should be constant \n",
|
|
"markdown": "[A.test](tests/detectors/constable-states/0.6.11/const_state_variables.sol#L8) should be constant \n",
|
|
"first_markdown_element": "tests/detectors/constable-states/0.6.11/const_state_variables.sol#L8",
|
|
"id": "e407a1b57b4d25949ef7c4e6d97197605857099a94774a9c7a848d7dd3463668",
|
|
"check": "constable-states",
|
|
"impact": "Optimization",
|
|
"confidence": "High"
|
|
}
|
|
]
|
|
] |