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.
833 lines
31 KiB
833 lines
31 KiB
{
|
|
"success": true,
|
|
"error": null,
|
|
"results": {
|
|
"detectors": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "variable",
|
|
"name": "globalBlockHash",
|
|
"source_mapping": {
|
|
"start": 48,
|
|
"length": 44,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 49
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected ContractWithDeprecatedReferences.globalBlockHash (tests/deprecated_calls.sol#2):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"markdown": "Deprecated standard detected [ContractWithDeprecatedReferences.globalBlockHash](tests/deprecated_calls.sol#L2):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"id": "84ecc7e9ce51f3a7103d3674e237fe1ba07899cca5d40de91172c36f434fc9ce",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "msg.gas == msg.value",
|
|
"source_mapping": {
|
|
"start": 261,
|
|
"length": 20,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
7
|
|
],
|
|
"starting_column": 12,
|
|
"ending_column": 32
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedThrow",
|
|
"source_mapping": {
|
|
"start": 142,
|
|
"length": 229,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedThrow()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected msg.gas == msg.value (tests/deprecated_calls.sol#7):\n\t- Usage of \"msg.gas\" should be replaced with \"gasleft()\"\n",
|
|
"markdown": "Deprecated standard detected [msg.gas == msg.value](tests/deprecated_calls.sol#L7):\n\t- Usage of \"msg.gas\" should be replaced with \"gasleft()\"\n",
|
|
"id": "0af1a05682eb2ab89143849898f6e2fb9bdfa6bdd01d43d81d41e10c4dfe58d7",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "",
|
|
"source_mapping": {
|
|
"start": 349,
|
|
"length": 5,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
9
|
|
],
|
|
"starting_column": 13,
|
|
"ending_column": 18
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedThrow",
|
|
"source_mapping": {
|
|
"start": 142,
|
|
"length": 229,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedThrow()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected THROW None (tests/deprecated_calls.sol#9):\n\t- Usage of \"throw\" should be replaced with \"revert()\"\n",
|
|
"markdown": "Deprecated standard detected [THROW None](tests/deprecated_calls.sol#L9):\n\t- Usage of \"throw\" should be replaced with \"revert()\"\n",
|
|
"id": "1a3241d58683640c33ae9e1bcd65bafd7472e7b7c9d2ec695f84590a2cef286a",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "sha3Result = sha3()(test deprecated sha3 usage)",
|
|
"source_mapping": {
|
|
"start": 542,
|
|
"length": 55,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
16
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 64
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 420,
|
|
"length": 484,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedReferences()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected sha3Result = sha3()(test deprecated sha3 usage) (tests/deprecated_calls.sol#16):\n\t- Usage of \"sha3()\" should be replaced with \"keccak256()\"\n",
|
|
"markdown": "Deprecated standard detected [sha3Result = sha3()(test deprecated sha3 usage)](tests/deprecated_calls.sol#L16):\n\t- Usage of \"sha3()\" should be replaced with \"keccak256()\"\n",
|
|
"id": "3926d80bb1119eb9faf7abdf2c2b61ce7accc5bcf4c0eaed120910e6662891f3",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "blockHashResult = block.blockhash(0)",
|
|
"source_mapping": {
|
|
"start": 671,
|
|
"length": 44,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
19
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 53
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 420,
|
|
"length": 484,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedReferences()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected blockHashResult = block.blockhash(0) (tests/deprecated_calls.sol#19):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"markdown": "Deprecated standard detected [blockHashResult = block.blockhash(0)](tests/deprecated_calls.sol#L19):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"id": "0e462458439683a8a7a6d2113e962b00bb79ead8d7f6f462a158cf114bd22e96",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "address(this).callcode()",
|
|
"source_mapping": {
|
|
"start": 785,
|
|
"length": 24,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
22
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 33
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 420,
|
|
"length": 484,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedReferences()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected address(this).callcode() (tests/deprecated_calls.sol#22):\n\t- Usage of \"callcode\" should be replaced with \"delegatecall\"\n",
|
|
"markdown": "Deprecated standard detected [address(this).callcode()](tests/deprecated_calls.sol#L22):\n\t- Usage of \"callcode\" should be replaced with \"delegatecall\"\n",
|
|
"id": "8d21d721e732845b6a72e96498c98f07a214f4acfb2f956a93dc48b57ed5de95",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "suicide(address)(address(0))",
|
|
"source_mapping": {
|
|
"start": 878,
|
|
"length": 19,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
25
|
|
],
|
|
"starting_column": 9,
|
|
"ending_column": 28
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "functionWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 420,
|
|
"length": 484,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "functionWithDeprecatedReferences()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected suicide(address)(address(0)) (tests/deprecated_calls.sol#25):\n\t- Usage of \"suicide()\" should be replaced with \"selfdestruct()\"\n",
|
|
"markdown": "Deprecated standard detected [suicide(address)(address(0))](tests/deprecated_calls.sol#L25):\n\t- Usage of \"suicide()\" should be replaced with \"selfdestruct()\"\n",
|
|
"id": "741bd57823d2933e7f19c5bebab1a57506f0fd377e148ae9383c2b40ca768508",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "node",
|
|
"name": "globalBlockHash = block.blockhash(0)",
|
|
"source_mapping": {
|
|
"start": 48,
|
|
"length": 44,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 49
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "function",
|
|
"name": "slitherConstructorVariables",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
},
|
|
"type_specific_fields": {
|
|
"parent": {
|
|
"type": "contract",
|
|
"name": "ContractWithDeprecatedReferences",
|
|
"source_mapping": {
|
|
"start": 0,
|
|
"length": 906,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_relative": "tests/deprecated_calls.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/deprecated_calls.sol",
|
|
"filename_short": "tests/deprecated_calls.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
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
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": null
|
|
}
|
|
},
|
|
"signature": "slitherConstructorVariables()"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "Deprecated standard detected globalBlockHash = block.blockhash(0) (tests/deprecated_calls.sol#2):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"markdown": "Deprecated standard detected [globalBlockHash = block.blockhash(0)](tests/deprecated_calls.sol#L2):\n\t- Usage of \"block.blockhash()\" should be replaced with \"blockhash()\"\n",
|
|
"id": "1a17fcbea6521ac0d23bbae6d75bcb85c6ba345a57e976e9e3a8d7862bbd9773",
|
|
"check": "deprecated-standards",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
}
|
|
]
|
|
}
|
|
} |