{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/solidity/issues/1557","repository_url":"https://api.github.com/repos/ethereum/solidity","labels_url":"https://api.github.com/repos/ethereum/solidity/issues/1557/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/solidity/issues/1557/comments","events_url":"https://api.github.com/repos/ethereum/solidity/issues/1557/events","html_url":"https://github.com/ethereum/solidity/issues/1557","id":200154754,"number":1557,"title":"Cannot read property 'call' of undefined","user":{"login":"rnkhouse","id":3238963,"avatar_url":"https://avatars.githubusercontent.com/u/3238963?v=3","gravatar_id":"","url":"https://api.github.com/users/rnkhouse","html_url":"https://github.com/rnkhouse","followers_url":"https://api.github.com/users/rnkhouse/followers","following_url":"https://api.github.com/users/rnkhouse/following{/other_user}","gists_url":"https://api.github.com/users/rnkhouse/gists{/gist_id}","starred_url":"https://api.github.com/users/rnkhouse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnkhouse/subscriptions","organizations_url":"https://api.github.com/users/rnkhouse/orgs","repos_url":"https://api.github.com/users/rnkhouse/repos","events_url":"https://api.github.com/users/rnkhouse/events{/privacy}","received_events_url":"https://api.github.com/users/rnkhouse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-11T17:21:08Z","updated_at":"2017-01-11T17:40:25Z","closed_at":null,"body":"Compiling below code:\r\n\r\npragma solidity ^0.4.2;\r\ncontract HelloWorld {\r\n    uint public balance;\r\n\r\n    function Helloworld(){\r\n        balance = 1000;\r\n    }\r\n}\r\n\r\ntruffle(default)> HelloWorld.balance.call()\r\n\r\nError:\r\nTypeError: Cannot read property 'call' of undefined\r\n    at evalmachine.<anonymous>:1:19\r\n    at ContextifyScript.Script.runInContext (vm.js:35:29)\r\n    at Object.exports.runInContext (vm.js:67:17)\r\n    at TruffleInterpreter.interpret (/usr/lib/node_modules/truffle/lib/repl.js:99:17)\r\n    at bound (domain.js:280:14)\r\n    at REPLServer.runBound [as eval] (domain.js:293:12)\r\n    at REPLServer.<anonymous> (repl.js:545:10)\r\n    at emitOne (events.js:96:13)\r\n    at REPLServer.emit (events.js:188:7)\r\n    at REPLServer.Interface._onLine (readline.js:239:10)"},"comment":{"url":"https://api.github.com/repos/ethereum/solidity/issues/comments/271937340","html_url":"https://github.com/ethereum/solidity/issues/1557#issuecomment-271937340","issue_url":"https://api.github.com/repos/ethereum/solidity/issues/1557","id":271937340,"user":{"login":"chriseth","id":9073706,"avatar_url":"https://avatars.githubusercontent.com/u/9073706?v=3","gravatar_id":"","url":"https://api.github.com/users/chriseth","html_url":"https://github.com/chriseth","followers_url":"https://api.github.com/users/chriseth/followers","following_url":"https://api.github.com/users/chriseth/following{/other_user}","gists_url":"https://api.github.com/users/chriseth/gists{/gist_id}","starred_url":"https://api.github.com/users/chriseth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriseth/subscriptions","organizations_url":"https://api.github.com/users/chriseth/orgs","repos_url":"https://api.github.com/users/chriseth/repos","events_url":"https://api.github.com/users/chriseth/events{/privacy}","received_events_url":"https://api.github.com/users/chriseth/received_events","type":"User","site_admin":false},"created_at":"2017-01-11T17:40:25Z","updated_at":"2017-01-11T17:40:25Z","body":"This looks like a bug in truffle, please file a bug report there."}}
{"actor":{"display_login":"chriseth"}}