{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1399","labels_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1399/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1399/comments","events_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1399/events","html_url":"https://github.com/ethereum/cpp-ethereum/issues/1399","id":64009948,"number":1399,"title":"Calling contracts in mix's browser does not work.","user":{"login":"Smithgift","id":10504499,"avatar_url":"https://avatars.githubusercontent.com/u/10504499?v=3","gravatar_id":"","url":"https://api.github.com/users/Smithgift","html_url":"https://github.com/Smithgift","followers_url":"https://api.github.com/users/Smithgift/followers","following_url":"https://api.github.com/users/Smithgift/following{/other_user}","gists_url":"https://api.github.com/users/Smithgift/gists{/gist_id}","starred_url":"https://api.github.com/users/Smithgift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smithgift/subscriptions","organizations_url":"https://api.github.com/users/Smithgift/orgs","repos_url":"https://api.github.com/users/Smithgift/repos","events_url":"https://api.github.com/users/Smithgift/events{/privacy}","received_events_url":"https://api.github.com/users/Smithgift/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/labels/mix","name":"mix","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"yann300","id":6940742,"avatar_url":"https://avatars.githubusercontent.com/u/6940742?v=3","gravatar_id":"","url":"https://api.github.com/users/yann300","html_url":"https://github.com/yann300","followers_url":"https://api.github.com/users/yann300/followers","following_url":"https://api.github.com/users/yann300/following{/other_user}","gists_url":"https://api.github.com/users/yann300/gists{/gist_id}","starred_url":"https://api.github.com/users/yann300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yann300/subscriptions","organizations_url":"https://api.github.com/users/yann300/orgs","repos_url":"https://api.github.com/users/yann300/repos","events_url":"https://api.github.com/users/yann300/events{/privacy}","received_events_url":"https://api.github.com/users/yann300/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-24T14:31:44Z","updated_at":"2015-03-27T20:14:11Z","closed_at":"2015-03-27T20:14:11Z","body":"I have had no success calling any function of any contract in mix's browser on the latest Ubuntu dev binary. Take the following stupid contract:\r\n\r\n```\r\ncontract Niner {\r\n   function nine() returns (uint) {\r\n   \treturn 9;\r\n   }\r\n}\r\n```\r\n\r\nCreating it and calling it through transaction in the state editor works fine and as expected: returning 9.\r\n\r\nUsing `contracts[\"Niner\"].contract.nine()` the browser's expressions pane, however, returns undefined. Using JavaScript to call it, ala `<input type=button onclick=\"console.log(contracts['Niner'].contract.nine())\" value=\"PRINT NINE!\">` also returns undefined. Using .call() gives `JavaScript\terror\t10:30:07 24.03.2015\tWebContainer.html - line 1 - Uncaught TypeError: undefined is not a function` and, yes, returns undefined.\r\n\r\n`contracts` itself gives\r\n```\r\n{\r\n  \"Niner\": {\r\n    \"contract\": {\r\n      \"_options\": {},\r\n      \"address\": \"0x78dfc5983baecf65f73e3de3a96cee24e6b7981e\",\r\n      \"_isTransaction\": null\r\n    }\r\n  }\r\n}\r\n```\r\nWhich appears to me to show that there is no ABI in there."},"comment":{"url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/comments/87075722","html_url":"https://github.com/ethereum/cpp-ethereum/issues/1399#issuecomment-87075722","issue_url":"https://api.github.com/repos/ethereum/cpp-ethereum/issues/1399","id":87075722,"user":{"login":"Smithgift","id":10504499,"avatar_url":"https://avatars.githubusercontent.com/u/10504499?v=3","gravatar_id":"","url":"https://api.github.com/users/Smithgift","html_url":"https://github.com/Smithgift","followers_url":"https://api.github.com/users/Smithgift/followers","following_url":"https://api.github.com/users/Smithgift/following{/other_user}","gists_url":"https://api.github.com/users/Smithgift/gists{/gist_id}","starred_url":"https://api.github.com/users/Smithgift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smithgift/subscriptions","organizations_url":"https://api.github.com/users/Smithgift/orgs","repos_url":"https://api.github.com/users/Smithgift/repos","events_url":"https://api.github.com/users/Smithgift/events{/privacy}","received_events_url":"https://api.github.com/users/Smithgift/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T20:14:11Z","updated_at":"2015-03-27T20:14:11Z","body":"Fixed in latest version."}}