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.
83 lines
2.8 KiB
83 lines
2.8 KiB
{
|
|
"success": true,
|
|
"error": null,
|
|
"results": {
|
|
"detectors": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "pragma",
|
|
"name": "^0.4.23",
|
|
"source_mapping": {
|
|
"start": 63,
|
|
"length": 24,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/solc_version_incorrect.sol",
|
|
"filename_relative": "tests/solc_version_incorrect.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/solc_version_incorrect.sol",
|
|
"filename_short": "tests/solc_version_incorrect.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
2
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 25
|
|
},
|
|
"type_specific_fields": {
|
|
"directive": [
|
|
"solidity",
|
|
"^",
|
|
"0.4",
|
|
".23"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"description": "Pragma version^0.4.23 (tests/solc_version_incorrect.sol#2) allows old versions\n",
|
|
"markdown": "Pragma version[^0.4.23](tests/solc_version_incorrect.sol#L2) allows old versions\n",
|
|
"id": "c88d5b50c78f468b95732feb91693016824f78333adab2fdcca3152eec2bfa73",
|
|
"check": "solc-version",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
},
|
|
{
|
|
"elements": [
|
|
{
|
|
"type": "pragma",
|
|
"name": ">=0.4.0<0.6.0",
|
|
"source_mapping": {
|
|
"start": 89,
|
|
"length": 31,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/solc_version_incorrect.sol",
|
|
"filename_relative": "tests/solc_version_incorrect.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/solc_version_incorrect.sol",
|
|
"filename_short": "tests/solc_version_incorrect.sol",
|
|
"is_dependency": false,
|
|
"lines": [
|
|
3
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 32
|
|
},
|
|
"type_specific_fields": {
|
|
"directive": [
|
|
"solidity",
|
|
">=",
|
|
"0.4",
|
|
".0",
|
|
"<",
|
|
"0.6",
|
|
".0"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"description": "Pragma version>=0.4.0<0.6.0 (tests/solc_version_incorrect.sol#3) allows old versions\n",
|
|
"markdown": "Pragma version[>=0.4.0<0.6.0](tests/solc_version_incorrect.sol#L3) allows old versions\n",
|
|
"id": "dfd3e70c2367b0c8eca5afa86d1773b9c7aa1d0a155e3a0495188800c41fe390",
|
|
"check": "solc-version",
|
|
"impact": "Informational",
|
|
"confidence": "High"
|
|
}
|
|
]
|
|
}
|
|
} |