{"comment":{"url":"https://api.github.com/repos/andreafspeziale/rock-paper-scissors-contract/comments/29149070","html_url":"https://github.com/andreafspeziale/rock-paper-scissors-contract/commit/56afc81fd9fdd315910b91bfce5db28d8d873b4d#commitcomment-29149070","id":29149070,"user":{"login":"andreafspeziale","id":7680940,"avatar_url":"https://avatars2.githubusercontent.com/u/7680940?v=4","gravatar_id":"","url":"https://api.github.com/users/andreafspeziale","html_url":"https://github.com/andreafspeziale","followers_url":"https://api.github.com/users/andreafspeziale/followers","following_url":"https://api.github.com/users/andreafspeziale/following{/other_user}","gists_url":"https://api.github.com/users/andreafspeziale/gists{/gist_id}","starred_url":"https://api.github.com/users/andreafspeziale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreafspeziale/subscriptions","organizations_url":"https://api.github.com/users/andreafspeziale/orgs","repos_url":"https://api.github.com/users/andreafspeziale/repos","events_url":"https://api.github.com/users/andreafspeziale/events{/privacy}","received_events_url":"https://api.github.com/users/andreafspeziale/received_events","type":"User","site_admin":false},"position":49,"line":121,"path":"contracts/RockPaperScissors.sol","commit_id":"56afc81fd9fdd315910b91bfce5db28d8d873b4d","created_at":"2018-05-28T08:42:55Z","updated_at":"2018-05-28T08:42:55Z","author_association":"OWNER","body":"It will cascade on multiple edits.\r\nLike changing the gameCases matrix using bytes32 of rock (e.g) instead strings:\r\n\r\n`mapping (bytes32 => mapping(bytes32 => int)) gameCases;`\r\n`bytes32 rock = 0x10977e4d68108d418408bc9310b60fc6d0a750c63ccef42cfb0ead23ab73d102`\r\n\r\nSo in the constructor:\r\n\r\n`gameCases[rock][rock] = 0;`\r\n\r\nIt will save gas in all the flow?"}}
{"actor":{"display_login":"andreafspeziale"}}