{ "success": true, "error": null, "results": { "detectors": [ { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "transfer", "source_mapping": { "start": 46, "length": 51, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 4 ], "starting_column": 5, "ending_column": 56 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "transfer(address,uint256)" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.transfer(address,uint256) (tests/incorrect_erc20_interface.sol#4)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.transfer(address,uint256)](tests/incorrect_erc20_interface.sol#L4)\n", "id": "d3df2e48ae6e8a1b05b275de574b480853a0839c272ce889e8a1664ae432698e", "check": "erc20-interface", "impact": "Medium", "confidence": "High" }, { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "approve", "source_mapping": { "start": 102, "length": 55, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 5 ], "starting_column": 5, "ending_column": 60 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "approve(address,uint256)" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.approve(address,uint256) (tests/incorrect_erc20_interface.sol#5)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.approve(address,uint256)](tests/incorrect_erc20_interface.sol#L5)\n", "id": "0fced3029cf59cf348a6b79c58dbb032d837fdd5a5f355600edebda1878e9e2e", "check": "erc20-interface", "impact": "Medium", "confidence": "High" }, { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "transferFrom", "source_mapping": { "start": 162, "length": 69, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 6 ], "starting_column": 5, "ending_column": 74 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "transferFrom(address,address,uint256)" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.transferFrom(address,address,uint256) (tests/incorrect_erc20_interface.sol#6)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.transferFrom(address,address,uint256)](tests/incorrect_erc20_interface.sol#L6)\n", "id": "ba13a1588595032984a3fad39610a2414bb8fcb522d1e632d52fa947ff207d73", "check": "erc20-interface", "impact": "Medium", "confidence": "High" }, { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "totalSupply", "source_mapping": { "start": 236, "length": 32, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 7 ], "starting_column": 5, "ending_column": 37 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "totalSupply()" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.totalSupply() (tests/incorrect_erc20_interface.sol#7)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.totalSupply()](tests/incorrect_erc20_interface.sol#L7)\n", "id": "c951e429e546af28ac08e241d391e874c1c9c70b0732ccfb63f3bbfb3eaac16e", "check": "erc20-interface", "impact": "Medium", "confidence": "High" }, { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "balanceOf", "source_mapping": { "start": 273, "length": 41, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 8 ], "starting_column": 5, "ending_column": 46 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "balanceOf(address)" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.balanceOf(address) (tests/incorrect_erc20_interface.sol#8)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.balanceOf(address)](tests/incorrect_erc20_interface.sol#L8)\n", "id": "758ca2456030a36dbd6115f2ccb1a43f53f1dabd66ed079806df0f6b7b4d21ef", "check": "erc20-interface", "impact": "Medium", "confidence": "High" }, { "elements": [ { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, { "type": "function", "name": "allowance", "source_mapping": { "start": 319, "length": 60, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 9 ], "starting_column": 5, "ending_column": 65 }, "type_specific_fields": { "parent": { "type": "contract", "name": "Token", "source_mapping": { "start": 26, "length": 355, "filename_used": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_relative": "tests/incorrect_erc20_interface.sol", "filename_absolute": "/home/travis/build/crytic/slither/tests/incorrect_erc20_interface.sol", "filename_short": "tests/incorrect_erc20_interface.sol", "is_dependency": false, "lines": [ 3, 4, 5, 6, 7, 8, 9, 10 ], "starting_column": 1, "ending_column": 2 } }, "signature": "allowance(address,address)" } } ], "description": "Token (tests/incorrect_erc20_interface.sol#3-10) has incorrect ERC20 function interface:Token.allowance(address,address) (tests/incorrect_erc20_interface.sol#9)\n", "markdown": "[Token](tests/incorrect_erc20_interface.sol#L3-L10) has incorrect ERC20 function interface:[Token.allowance(address,address)](tests/incorrect_erc20_interface.sol#L9)\n", "id": "1286abfe21b09e21e1cec8b991f73664e104fa39f7f4190690ece3af45bc0c7a", "check": "erc20-interface", "impact": "Medium", "confidence": "High" } ] } }