{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/277","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/277/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/277/events","html_url":"https://github.com/ethereum/web3.js/issues/277","id":97230762,"number":277,"title":"Wrong return parameter decoding BigNumber instead of Array of BigNumbers","user":{"login":"Georgi87","id":259400,"avatar_url":"https://avatars.githubusercontent.com/u/259400?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgi87","html_url":"https://github.com/Georgi87","followers_url":"https://api.github.com/users/Georgi87/followers","following_url":"https://api.github.com/users/Georgi87/following{/other_user}","gists_url":"https://api.github.com/users/Georgi87/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgi87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgi87/subscriptions","organizations_url":"https://api.github.com/users/Georgi87/orgs","repos_url":"https://api.github.com/users/Georgi87/repos","events_url":"https://api.github.com/users/Georgi87/events{/privacy}","received_events_url":"https://api.github.com/users/Georgi87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-25T14:38:26Z","updated_at":"2015-07-27T09:17:12Z","closed_at":null,"body":"I have a problem with abi decoding of return arrays in web3. The following is a part of the ABI:\r\n```\r\n{\r\n\"inputs\": [{\"type\": \"uint256[]\", \"name\": \"event_description_hashes\"}], \r\n\"constant\": false, \"type\": \"function\", \"name\": \"getMarkets\",\r\n \"outputs\": [{\"type\": \"uint256[1024]\", \"name\": \"\"}]\r\n}\r\n```\r\n\r\nFor some reason I don't get an array back but a single large integer in web3:\r\n\r\n```\r\ninterface_contract.getMarkets.call(event_hashes, 'pending', function (err, markets) { \r\n    console.log(markets) // is  1.0151422069548598394975132446711695856e+38\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/125138439","html_url":"https://github.com/ethereum/web3.js/issues/277#issuecomment-125138439","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/277","id":125138439,"user":{"login":"Georgi87","id":259400,"avatar_url":"https://avatars.githubusercontent.com/u/259400?v=3","gravatar_id":"","url":"https://api.github.com/users/Georgi87","html_url":"https://github.com/Georgi87","followers_url":"https://api.github.com/users/Georgi87/followers","following_url":"https://api.github.com/users/Georgi87/following{/other_user}","gists_url":"https://api.github.com/users/Georgi87/gists{/gist_id}","starred_url":"https://api.github.com/users/Georgi87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Georgi87/subscriptions","organizations_url":"https://api.github.com/users/Georgi87/orgs","repos_url":"https://api.github.com/users/Georgi87/repos","events_url":"https://api.github.com/users/Georgi87/events{/privacy}","received_events_url":"https://api.github.com/users/Georgi87/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T09:17:12Z","updated_at":"2015-07-27T09:17:12Z","body":"Great, thanks debris!"}}