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.
73 lines
2.4 KiB
73 lines
2.4 KiB
{
|
|
"success": true,
|
|
"error": null,
|
|
"results": [
|
|
{
|
|
"check": "locked-ether",
|
|
"impact": "Medium",
|
|
"confidence": "High",
|
|
"description": "Contract locking ether found in :\n\tContract OnlyLocked has payable functions:\n\t - receive (tests/locked_ether-0.5.1.sol#4-6)\n\tBut does not have a function to withdraw the ether\n",
|
|
"elements": [
|
|
{
|
|
"type": "function",
|
|
"name": "receive",
|
|
"source_mapping": {
|
|
"start": 46,
|
|
"length": 72,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_relative": "tests/locked_ether-0.5.1.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_short": "tests/locked_ether-0.5.1.sol",
|
|
"lines": [
|
|
4,
|
|
5,
|
|
6
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 6
|
|
},
|
|
"contract": {
|
|
"type": "contract",
|
|
"name": "Locked",
|
|
"source_mapping": {
|
|
"start": 24,
|
|
"length": 97,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_relative": "tests/locked_ether-0.5.1.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_short": "tests/locked_ether-0.5.1.sol",
|
|
"lines": [
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "contract",
|
|
"name": "OnlyLocked",
|
|
"source_mapping": {
|
|
"start": 375,
|
|
"length": 32,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_relative": "tests/locked_ether-0.5.1.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/locked_ether-0.5.1.sol",
|
|
"filename_short": "tests/locked_ether-0.5.1.sol",
|
|
"lines": [
|
|
26
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 33
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |