{"action":"created","issue":{"url":"https://api.github.com/repos/trailofbits/slither/issues/45","repository_url":"https://api.github.com/repos/trailofbits/slither","labels_url":"https://api.github.com/repos/trailofbits/slither/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/trailofbits/slither/issues/45/comments","events_url":"https://api.github.com/repos/trailofbits/slither/issues/45/events","html_url":"https://github.com/trailofbits/slither/issues/45","id":372031579,"node_id":"MDU6SXNzdWUzNzIwMzE1Nzk=","number":45,"title":"Detector: Unused return value of a call","user":{"login":"montyly","id":13798342,"node_id":"MDQ6VXNlcjEzNzk4MzQy","avatar_url":"https://avatars2.githubusercontent.com/u/13798342?v=4","gravatar_id":"","url":"https://api.github.com/users/montyly","html_url":"https://github.com/montyly","followers_url":"https://api.github.com/users/montyly/followers","following_url":"https://api.github.com/users/montyly/following{/other_user}","gists_url":"https://api.github.com/users/montyly/gists{/gist_id}","starred_url":"https://api.github.com/users/montyly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montyly/subscriptions","organizations_url":"https://api.github.com/users/montyly/orgs","repos_url":"https://api.github.com/users/montyly/repos","events_url":"https://api.github.com/users/montyly/events{/privacy}","received_events_url":"https://api.github.com/users/montyly/received_events","type":"User","site_admin":false},"labels":[{"id":1047160703,"node_id":"MDU6TGFiZWwxMDQ3MTYwNzAz","url":"https://api.github.com/repos/trailofbits/slither/labels/help%20wanted","name":"help wanted","color":"008672","default":true},{"id":1094270134,"node_id":"MDU6TGFiZWwxMDk0MjcwMTM0","url":"https://api.github.com/repos/trailofbits/slither/labels/new%20detector","name":"new detector","color":"f4c509","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-19T16:36:29Z","updated_at":"2018-10-25T17:17:50Z","closed_at":null,"author_association":"COLLABORATOR","body":"If the return value of a function is never used, it's likely to be bug.\r\n\r\n- severity low/medium\r\n\r\nSlithIR can be used to track if the value returned by a call is used:\r\n- If the function does not return a value, the  `lvalue` of the operation is `None`, otherwise its a variable.\r\n- We can check if the `lvalue` is in the `read` list of another operation\r\n\r\nExample: \r\n\r\n```\r\ncontract Target{\r\n    function f() returns(uint);\r\n}\r\n\r\ncontract Function{\r\n\r\n    function test(Target t){\r\n        t.f();\r\n    }\r\n\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/trailofbits/slither/issues/comments/433134405","html_url":"https://github.com/trailofbits/slither/issues/45#issuecomment-433134405","issue_url":"https://api.github.com/repos/trailofbits/slither/issues/45","id":433134405,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzEzNDQwNQ==","user":{"login":"cryptomental","id":20819151,"node_id":"MDQ6VXNlcjIwODE5MTUx","avatar_url":"https://avatars0.githubusercontent.com/u/20819151?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptomental","html_url":"https://github.com/cryptomental","followers_url":"https://api.github.com/users/cryptomental/followers","following_url":"https://api.github.com/users/cryptomental/following{/other_user}","gists_url":"https://api.github.com/users/cryptomental/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptomental/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptomental/subscriptions","organizations_url":"https://api.github.com/users/cryptomental/orgs","repos_url":"https://api.github.com/users/cryptomental/repos","events_url":"https://api.github.com/users/cryptomental/events{/privacy}","received_events_url":"https://api.github.com/users/cryptomental/received_events","type":"User","site_admin":false},"created_at":"2018-10-25T17:17:50Z","updated_at":"2018-10-25T17:17:50Z","author_association":"CONTRIBUTOR","body":"Hi @6ug Gitcoin's bot algorithm is simple - if you do not comment anything for 3 days you get a first warning, then after 6 days one of the Gitcoin power users will be notified. This is an automated message, as long as you are working on this it is all fine."}}
{"actor":{"display_login":"cryptomental"}}