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.
688 lines
34 KiB
688 lines
34 KiB
2 years ago
|
[
|
||
|
[
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad2",
|
||
|
"source_mapping": {
|
||
|
"start": 192,
|
||
|
"length": 78,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
8,
|
||
|
9,
|
||
|
10
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad2()"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"name": "this.erc20()",
|
||
|
"source_mapping": {
|
||
|
"start": 244,
|
||
|
"length": 19,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
9
|
||
|
],
|
||
|
"starting_column": 9,
|
||
|
"ending_column": 28
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad2",
|
||
|
"source_mapping": {
|
||
|
"start": 192,
|
||
|
"length": 78,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
8,
|
||
|
9,
|
||
|
10
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad2()"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"description": "The function VarReadUsingThis.bad2() (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#8-10) reads this.erc20() (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#9) with `this` which adds an extra STATICALL.\n",
|
||
|
"markdown": "The function [VarReadUsingThis.bad2()](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L8-L10) reads [this.erc20()](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L9) with `this` which adds an extra STATICALL.\n",
|
||
|
"first_markdown_element": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L8-L10",
|
||
|
"id": "0178009997f4d2c4d9a3a9e966bc7c3277ba1ce8c8c412b04fbe2cab3eab1b64",
|
||
|
"check": "var-read-using-this",
|
||
|
"impact": "Optimization",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad1",
|
||
|
"source_mapping": {
|
||
|
"start": 102,
|
||
|
"length": 85,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
5,
|
||
|
6,
|
||
|
7
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad1(uint256)"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"name": "this.myMap(x)",
|
||
|
"source_mapping": {
|
||
|
"start": 160,
|
||
|
"length": 20,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
6
|
||
|
],
|
||
|
"starting_column": 9,
|
||
|
"ending_column": 29
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad1",
|
||
|
"source_mapping": {
|
||
|
"start": 102,
|
||
|
"length": 85,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
5,
|
||
|
6,
|
||
|
7
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad1(uint256)"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"description": "The function VarReadUsingThis.bad1(uint256) (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#5-7) reads this.myMap(x) (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#6) with `this` which adds an extra STATICALL.\n",
|
||
|
"markdown": "The function [VarReadUsingThis.bad1(uint256)](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L5-L7) reads [this.myMap(x)](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L6) with `this` which adds an extra STATICALL.\n",
|
||
|
"first_markdown_element": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L5-L7",
|
||
|
"id": "1aeda0f171a714323d2cc886a4569374dcecf4a31bfd07dd341985cb91c1cda4",
|
||
|
"check": "var-read-using-this",
|
||
|
"impact": "Optimization",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad4",
|
||
|
"source_mapping": {
|
||
|
"start": 379,
|
||
|
"length": 138,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad4()"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"name": "local = this.erc20()",
|
||
|
"source_mapping": {
|
||
|
"start": 471,
|
||
|
"length": 28,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
16
|
||
|
],
|
||
|
"starting_column": 13,
|
||
|
"ending_column": 41
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad4",
|
||
|
"source_mapping": {
|
||
|
"start": 379,
|
||
|
"length": 138,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
14,
|
||
|
15,
|
||
|
16,
|
||
|
17,
|
||
|
18
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad4()"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"description": "The function VarReadUsingThis.bad4() (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#14-18) reads local = this.erc20() (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#16) with `this` which adds an extra STATICALL.\n",
|
||
|
"markdown": "The function [VarReadUsingThis.bad4()](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L14-L18) reads [local = this.erc20()](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L16) with `this` which adds an extra STATICALL.\n",
|
||
|
"first_markdown_element": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L14-L18",
|
||
|
"id": "512bc7a6d6d4fc95951dd03634d193a2e29b0162882a8b4be6e27ff899e21b2d",
|
||
|
"check": "var-read-using-this",
|
||
|
"impact": "Optimization",
|
||
|
"confidence": "Medium"
|
||
|
},
|
||
|
{
|
||
|
"elements": [
|
||
|
{
|
||
|
"type": "function",
|
||
|
"name": "bad3",
|
||
|
"source_mapping": {
|
||
|
"start": 275,
|
||
|
"length": 99,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
11,
|
||
|
12,
|
||
|
13
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad3()"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "node",
|
||
|
"name": "this.erc20() == address(0)",
|
||
|
"source_mapping": {
|
||
|
"start": 331,
|
||
|
"length": 26,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
12
|
||
|
],
|
||
|
"starting_column": 13,
|
||
|
"ending_column": 39
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "function",
|
||
|
"name": "bad3",
|
||
|
"source_mapping": {
|
||
|
"start": 275,
|
||
|
"length": 99,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
11,
|
||
|
12,
|
||
|
13
|
||
|
],
|
||
|
"starting_column": 5,
|
||
|
"ending_column": 6
|
||
|
},
|
||
|
"type_specific_fields": {
|
||
|
"parent": {
|
||
|
"type": "contract",
|
||
|
"name": "VarReadUsingThis",
|
||
|
"source_mapping": {
|
||
|
"start": 1,
|
||
|
"length": 916,
|
||
|
"filename_relative": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"filename_absolute": "/GENERIC_PATH",
|
||
|
"filename_short": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol",
|
||
|
"is_dependency": false,
|
||
|
"lines": [
|
||
|
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,
|
||
|
33
|
||
|
],
|
||
|
"starting_column": 1,
|
||
|
"ending_column": 2
|
||
|
}
|
||
|
},
|
||
|
"signature": "bad3()"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"description": "The function VarReadUsingThis.bad3() (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#11-13) reads this.erc20() == address(0) (tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#12) with `this` which adds an extra STATICALL.\n",
|
||
|
"markdown": "The function [VarReadUsingThis.bad3()](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L11-L13) reads [this.erc20() == address(0)](tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L12) with `this` which adds an extra STATICALL.\n",
|
||
|
"first_markdown_element": "tests/detectors/var-read-using-this/0.5.16/var_read_using_this.sol#L11-L13",
|
||
|
"id": "e230fb1483c53ad953389bae20f599c95bbb5feb0040a4b9c33da5ec96682eff",
|
||
|
"check": "var-read-using-this",
|
||
|
"impact": "Optimization",
|
||
|
"confidence": "Medium"
|
||
|
}
|
||
|
]
|
||
|
]
|