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.
186 lines
6.2 KiB
186 lines
6.2 KiB
{
|
|
"success": true,
|
|
"error": null,
|
|
"results": [
|
|
{
|
|
"check": "erc20-indexed",
|
|
"impact": "Informational",
|
|
"confidence": "High",
|
|
"description": "IERC20Bad (tests/erc20_indexed.sol#12-21) does not mark important ERC20 parameters as 'indexed':\n\t-Transfer (tests/erc20_indexed.sol#19) does not index parameter 'from'\n\t-Transfer (tests/erc20_indexed.sol#19) does not index parameter 'to'\n\t-Approval (tests/erc20_indexed.sol#20) does not index parameter 'owner'\n\t-Approval (tests/erc20_indexed.sol#20) does not index parameter 'spender'\n",
|
|
"elements": [
|
|
{
|
|
"type": "function",
|
|
"name": "Approval",
|
|
"source_mapping": {
|
|
"start": 1148,
|
|
"length": 59,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
20
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 64
|
|
},
|
|
"contract": {
|
|
"type": "contract",
|
|
"name": "IERC20Bad",
|
|
"source_mapping": {
|
|
"start": 622,
|
|
"length": 587,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "Approval",
|
|
"source_mapping": {
|
|
"start": 1148,
|
|
"length": 59,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
20
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 64
|
|
},
|
|
"contract": {
|
|
"type": "contract",
|
|
"name": "IERC20Bad",
|
|
"source_mapping": {
|
|
"start": 622,
|
|
"length": 587,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "Transfer",
|
|
"source_mapping": {
|
|
"start": 1090,
|
|
"length": 53,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
19
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 58
|
|
},
|
|
"contract": {
|
|
"type": "contract",
|
|
"name": "IERC20Bad",
|
|
"source_mapping": {
|
|
"start": 622,
|
|
"length": 587,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "Transfer",
|
|
"source_mapping": {
|
|
"start": 1090,
|
|
"length": 53,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
19
|
|
],
|
|
"starting_column": 5,
|
|
"ending_column": 58
|
|
},
|
|
"contract": {
|
|
"type": "contract",
|
|
"name": "IERC20Bad",
|
|
"source_mapping": {
|
|
"start": 622,
|
|
"length": 587,
|
|
"filename_used": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_relative": "tests/erc20_indexed.sol",
|
|
"filename_absolute": "/home/travis/build/crytic/slither/tests/erc20_indexed.sol",
|
|
"filename_short": "tests/erc20_indexed.sol",
|
|
"lines": [
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21
|
|
],
|
|
"starting_column": 1,
|
|
"ending_column": 2
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |