{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/1063","repository_url":"https://api.github.com/repos/ethereum/web3.js","labels_url":"https://api.github.com/repos/ethereum/web3.js/issues/1063/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/web3.js/issues/1063/comments","events_url":"https://api.github.com/repos/ethereum/web3.js/issues/1063/events","html_url":"https://github.com/ethereum/web3.js/issues/1063","id":259714354,"number":1063,"title":"call function bool value issue","user":{"login":"thackerronak","id":26240401,"avatar_url":"https://avatars2.githubusercontent.com/u/26240401?v=4","gravatar_id":"","url":"https://api.github.com/users/thackerronak","html_url":"https://github.com/thackerronak","followers_url":"https://api.github.com/users/thackerronak/followers","following_url":"https://api.github.com/users/thackerronak/following{/other_user}","gists_url":"https://api.github.com/users/thackerronak/gists{/gist_id}","starred_url":"https://api.github.com/users/thackerronak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thackerronak/subscriptions","organizations_url":"https://api.github.com/users/thackerronak/orgs","repos_url":"https://api.github.com/users/thackerronak/repos","events_url":"https://api.github.com/users/thackerronak/events{/privacy}","received_events_url":"https://api.github.com/users/thackerronak/received_events","type":"User","site_admin":false},"labels":[{"id":653964613,"url":"https://api.github.com/repos/ethereum/web3.js/labels/more%20information%20needed","name":"more information needed","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-09-22T06:20:50Z","updated_at":"2018-05-14T23:32:57Z","closed_at":null,"author_association":"NONE","body":"Lib version : \"web3\": \"^1.0.0-beta.21\"\r\n```\r\ncontract.methods.challenge().call({\r\n                        from: adminAddress\r\n                    }, function (error, result) {\r\nconsole.log(error)\r\n}\r\n```\r\n\r\n> Error: Couldn't decode bool from ABI: 0x\r\n>     at SolidityTypeBool.formatOutputBool (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-abi/src/formatters.js:195:15)\r\n>     at SolidityTypeBool.SolidityType.decode (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-abi/src/type.js:252:17)\r\n>     at /Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-abi/src/index.js:327:49\r\n>     at Array.forEach (native)\r\n>     at ABICoder.decodeParameters (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-abi/src/index.js:326:13)\r\n>     at Contract._decodeMethodReturn (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-contract/src/index.js:490:22)\r\n>     at Method._parent._ethereumCall.call.method.outputFormatter (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-eth-contract/src/index.js:820:42)\r\n>     at Method.formatOutput (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-core-method/src/index.js:179:54)\r\n>     at sendTxCallback (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-core-method/src/index.js:446:33)\r\n>     at /Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-core-requestmanager/src/index.js:144:9\r\n>     at XMLHttpRequest.request.onreadystatechange (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/web3-providers-http/src/index.js:64:13)\r\n>     at XMLHttpRequestEventTarget.dispatchEvent (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/xhr2/lib/xhr2.js:64:18)\r\n>     at XMLHttpRequest._setReadyState (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/xhr2/lib/xhr2.js:354:12)\r\n>     at XMLHttpRequest._onHttpResponseEnd (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/xhr2/lib/xhr2.js:509:12)\r\n>     at IncomingMessage.<anonymous> (/Users/smartSense/Ronak Thacker/Node JS/WordwormBackend/node_modules/xhr2/lib/xhr2.js:469:24)\r\n>     at emitNone (events.js:91:20)\r\n"},"comment":{"url":"https://api.github.com/repos/ethereum/web3.js/issues/comments/388995257","html_url":"https://github.com/ethereum/web3.js/issues/1063#issuecomment-388995257","issue_url":"https://api.github.com/repos/ethereum/web3.js/issues/1063","id":388995257,"user":{"login":"quantumproducer","id":11827932,"avatar_url":"https://avatars1.githubusercontent.com/u/11827932?v=4","gravatar_id":"","url":"https://api.github.com/users/quantumproducer","html_url":"https://github.com/quantumproducer","followers_url":"https://api.github.com/users/quantumproducer/followers","following_url":"https://api.github.com/users/quantumproducer/following{/other_user}","gists_url":"https://api.github.com/users/quantumproducer/gists{/gist_id}","starred_url":"https://api.github.com/users/quantumproducer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quantumproducer/subscriptions","organizations_url":"https://api.github.com/users/quantumproducer/orgs","repos_url":"https://api.github.com/users/quantumproducer/repos","events_url":"https://api.github.com/users/quantumproducer/events{/privacy}","received_events_url":"https://api.github.com/users/quantumproducer/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T23:32:57Z","updated_at":"2018-05-14T23:32:57Z","author_association":"NONE","body":"@rhlsthrm \r\n\r\nI tried your way:\r\n\r\n\r\nvar web3 = new Web3(new Web3.providers.HttpProvider(\"http://localhost:8545\"));\r\nlet c = new web3.eth.Contract(abi, keyaddress);\r\n\r\n\r\n```\r\nweb3.eth.call({\r\n             to: keyaddress,\r\n             data: c.methods.developer().encodeABI()\r\n}).then(balance => {console.log(balance)});\r\n\r\nweb3.eth.call({\r\n        to: keyaddress,\r\n        data: c.methods.ownersNum().encodeABI()\r\n}).then(balance => {console.log(balance)});\r\n```\r\n\r\nconsole log:\r\n\r\n```\r\n0x\r\n0x\r\n```\r\n\r\nThese are both incorrect\r\n\r\n<img width=\"849\" alt=\"screen shot 2018-05-14 at 19 11 56\" src=\"https://user-images.githubusercontent.com/11827932/40028571-974a0a5c-57ad-11e8-9066-78a47be3e346.png\">\r\n"}}
{"actor":{"display_login":"quantumproducer"}}