{"action":"created","issue":{"url":"https://api.github.com/repos/MFChain/smart-contracts/issues/54","repository_url":"https://api.github.com/repos/MFChain/smart-contracts","labels_url":"https://api.github.com/repos/MFChain/smart-contracts/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/MFChain/smart-contracts/issues/54/comments","events_url":"https://api.github.com/repos/MFChain/smart-contracts/issues/54/events","html_url":"https://github.com/MFChain/smart-contracts/issues/54","id":297413192,"number":54,"title":"Create test for ICO_controller refund()","user":{"login":"savao","id":4136666,"avatar_url":"https://avatars2.githubusercontent.com/u/4136666?v=4","gravatar_id":"","url":"https://api.github.com/users/savao","html_url":"https://github.com/savao","followers_url":"https://api.github.com/users/savao/followers","following_url":"https://api.github.com/users/savao/following{/other_user}","gists_url":"https://api.github.com/users/savao/gists{/gist_id}","starred_url":"https://api.github.com/users/savao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savao/subscriptions","organizations_url":"https://api.github.com/users/savao/orgs","repos_url":"https://api.github.com/users/savao/repos","events_url":"https://api.github.com/users/savao/events{/privacy}","received_events_url":"https://api.github.com/users/savao/received_events","type":"User","site_admin":false},"labels":[{"id":828623006,"url":"https://api.github.com/repos/MFChain/smart-contracts/labels/task","name":"task","color":"668cff","default":false}],"state":"open","locked":false,"assignee":{"login":"savao","id":4136666,"avatar_url":"https://avatars2.githubusercontent.com/u/4136666?v=4","gravatar_id":"","url":"https://api.github.com/users/savao","html_url":"https://github.com/savao","followers_url":"https://api.github.com/users/savao/followers","following_url":"https://api.github.com/users/savao/following{/other_user}","gists_url":"https://api.github.com/users/savao/gists{/gist_id}","starred_url":"https://api.github.com/users/savao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savao/subscriptions","organizations_url":"https://api.github.com/users/savao/orgs","repos_url":"https://api.github.com/users/savao/repos","events_url":"https://api.github.com/users/savao/events{/privacy}","received_events_url":"https://api.github.com/users/savao/received_events","type":"User","site_admin":false},"assignees":[{"login":"savao","id":4136666,"avatar_url":"https://avatars2.githubusercontent.com/u/4136666?v=4","gravatar_id":"","url":"https://api.github.com/users/savao","html_url":"https://github.com/savao","followers_url":"https://api.github.com/users/savao/followers","following_url":"https://api.github.com/users/savao/following{/other_user}","gists_url":"https://api.github.com/users/savao/gists{/gist_id}","starred_url":"https://api.github.com/users/savao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/savao/subscriptions","organizations_url":"https://api.github.com/users/savao/orgs","repos_url":"https://api.github.com/users/savao/repos","events_url":"https://api.github.com/users/savao/events{/privacy}","received_events_url":"https://api.github.com/users/savao/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-15T11:30:17Z","updated_at":"2018-03-28T09:45:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Summary:**\nUsing Truffle, we check method for _ICO_controller refund()_ and test 4 moments:\n- if the function reverted if the common crowdsale not ended.\n- if the function reverted if the softcap reached.\n- if the right amount of Ether refunded.\n- if the buyerSpent[msg.sender] == 0 after refund.\n\n**Output:**\nAfter running the test with Truffle, please attach a screen to issue"},"comment":{"url":"https://api.github.com/repos/MFChain/smart-contracts/issues/comments/376827175","html_url":"https://github.com/MFChain/smart-contracts/issues/54#issuecomment-376827175","issue_url":"https://api.github.com/repos/MFChain/smart-contracts/issues/54","id":376827175,"user":{"login":"serebrov","id":597640,"avatar_url":"https://avatars1.githubusercontent.com/u/597640?v=4","gravatar_id":"","url":"https://api.github.com/users/serebrov","html_url":"https://github.com/serebrov","followers_url":"https://api.github.com/users/serebrov/followers","following_url":"https://api.github.com/users/serebrov/following{/other_user}","gists_url":"https://api.github.com/users/serebrov/gists{/gist_id}","starred_url":"https://api.github.com/users/serebrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serebrov/subscriptions","organizations_url":"https://api.github.com/users/serebrov/orgs","repos_url":"https://api.github.com/users/serebrov/repos","events_url":"https://api.github.com/users/serebrov/events{/privacy}","received_events_url":"https://api.github.com/users/serebrov/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T09:45:58Z","updated_at":"2018-03-28T09:45:58Z","author_association":"CONTRIBUTOR","body":"Covered by ICO stage tests."}}
{"actor":{"display_login":"serebrov"}}