{"action":"closed","issue":{"url":"https://api.github.com/repos/ethereum/vyper/issues/680","repository_url":"https://api.github.com/repos/ethereum/vyper","labels_url":"https://api.github.com/repos/ethereum/vyper/issues/680/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/vyper/issues/680/comments","events_url":"https://api.github.com/repos/ethereum/vyper/issues/680/events","html_url":"https://github.com/ethereum/vyper/issues/680","id":297142983,"node_id":"MDU6SXNzdWUyOTcxNDI5ODM=","number":680,"title":"Cannot convert from address to num256","user":{"login":"lorenzb","id":1148586,"node_id":"MDQ6VXNlcjExNDg1ODY=","avatar_url":"https://avatars2.githubusercontent.com/u/1148586?v=4","gravatar_id":"","url":"https://api.github.com/users/lorenzb","html_url":"https://github.com/lorenzb","followers_url":"https://api.github.com/users/lorenzb/followers","following_url":"https://api.github.com/users/lorenzb/following{/other_user}","gists_url":"https://api.github.com/users/lorenzb/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzb/subscriptions","organizations_url":"https://api.github.com/users/lorenzb/orgs","repos_url":"https://api.github.com/users/lorenzb/repos","events_url":"https://api.github.com/users/lorenzb/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzb/received_events","type":"User","site_admin":false},"labels":[{"id":479554964,"node_id":"MDU6TGFiZWw0Nzk1NTQ5NjQ=","url":"https://api.github.com/repos/ethereum/vyper/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-02-14T15:44:20Z","updated_at":"2018-06-15T11:22:17Z","closed_at":"2018-06-15T11:22:17Z","author_association":"NONE","body":"* vyper Version: 0.0.3 (commit 4d33dc4140f7d0c339876afb6af7b417bd0ed8e0)\r\n* pyethereum Version: 2.3.0\r\n* OS: osx & linux\r\n* Python Version (python --version):\r\nPython 3.6.3\r\n* Environment (output of `pip freeze`):\r\n```asn1crypto==0.24.0\r\nattrs==17.4.0\r\nbumpversion==0.5.3\r\ncertifi==2018.1.18\r\ncffi==1.11.4\r\nchardet==3.0.4\r\ncoincurve==7.1.0\r\ncoverage==4.5.1\r\ncytoolz==0.9.0\r\nethereum==2.3.0\r\nethereum-abi-utils==0.4.7\r\nethereum-serpent==2.0.7\r\nethereum-utils==0.6.2\r\nfuture==0.16.0\r\nidna==2.6\r\nJinja2==2.10\r\nMarkupSafe==1.0\r\nnumpy==1.14.0\r\npbkdf2==1.3\r\npluggy==0.6.0\r\npy==1.5.2\r\npy-ecc==1.4.2\r\npycparser==2.18\r\npycryptodome==3.4.11\r\npyethash==0.1.27\r\npylru==1.0.9\r\npysha3==1.0.2\r\npytest==3.4.0\r\npytest-cov==2.5.1\r\npytest-runner==4.0\r\nPyYAML==3.12\r\nrepoze.lru==0.7\r\nrequests==2.18.4\r\nrlp==0.6.0\r\nscrypt==0.8.6\r\nsix==1.11.0\r\ntoolz==0.9.0\r\nurllib3==1.22\r\nvyper==0.0.3\r\nweb3==3.13.4\r\n```\r\n### What's your issue about?\r\n\r\nThe new `convert(x, 'num256')` function doesn't accept an `x` of type address.\r\nIt's possible to work around this by doing `convert(convert(my_address, 'bytes32'), 'num256')`\r\n\r\nThis seems unnecessarily cumbersome. It would be nice if a direct conversion were possible.\r\n\r\n### How can it be fixed?\r\n\r\nI suspect that this line is the culprit:\r\nhttps://github.com/ethereum/vyper/blob/4d33dc4140f7d0c339876afb6af7b417bd0ed8e0/vyper/types/convert.py#L37\r\n\r\n#### Cute Animal Picture\r\n![valentine](https://i.pinimg.com/736x/8c/87/f1/8c87f181412dd85b618ffa21da105ed3.jpg)\r\n"}}
{"actor":{"display_login":"jacqueswww"}}