{"action":"closed","issue":{"url":"https://api.github.com/repos/CityOfZion/neo-python/issues/736","repository_url":"https://api.github.com/repos/CityOfZion/neo-python","labels_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/736/comments","events_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/736/events","html_url":"https://github.com/CityOfZion/neo-python/issues/736","id":387199259,"node_id":"MDU6SXNzdWUzODcxOTkyNTk=","number":736,"title":"\"import token {contract hash}\" not work","user":{"login":"kentarohorie","id":14952562,"node_id":"MDQ6VXNlcjE0OTUyNTYy","avatar_url":"https://avatars3.githubusercontent.com/u/14952562?v=4","gravatar_id":"","url":"https://api.github.com/users/kentarohorie","html_url":"https://github.com/kentarohorie","followers_url":"https://api.github.com/users/kentarohorie/followers","following_url":"https://api.github.com/users/kentarohorie/following{/other_user}","gists_url":"https://api.github.com/users/kentarohorie/gists{/gist_id}","starred_url":"https://api.github.com/users/kentarohorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentarohorie/subscriptions","organizations_url":"https://api.github.com/users/kentarohorie/orgs","repos_url":"https://api.github.com/users/kentarohorie/repos","events_url":"https://api.github.com/users/kentarohorie/events{/privacy}","received_events_url":"https://api.github.com/users/kentarohorie/received_events","type":"User","site_admin":false},"labels":[{"id":1018451747,"node_id":"MDU6TGFiZWwxMDE4NDUxNzQ3","url":"https://api.github.com/repos/CityOfZion/neo-python/labels/need%20user%20action","name":"need user action","color":"ffe7a0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-12-04T09:45:12Z","updated_at":"2018-12-22T13:39:40Z","closed_at":"2018-12-22T13:39:40Z","author_association":"NONE","body":"### Current behavior\r\n- neo-python v0.8.2\r\n- What is the problem?\r\n  - After build and import contract, I can't \"import token {contract hash}\"\r\n- Include a screenshot if it makes sense.\r\n\r\nThis is log.\r\nDefault error message is \"Could not import token\"\r\nError place is \r\nneo/Wallets/NEP5Token.py 99 line and I print this log.\r\n\r\n```\r\nCould not execute command: 'NoneType' object has no attribute 'ToString'\r\n  File \"/usr/lib64/python3.6/threading.py\", line 884, in _bootstrap\r\n    self._bootstrap_inner()\r\n  File \"/usr/lib64/python3.6/threading.py\", line 916, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib64/python3.6/threading.py\", line 864, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/_threads/_threadworker.py\", line 46, in work\r\n    task()\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/_threads/_team.py\", line 190, in doWork\r\n    task()\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/python/threadpool.py\", line 250, in inContext\r\n    result = inContext.theWork()\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/python/threadpool.py\", line 266, in <lambda>\r\n    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/python/context.py\", line 122, in callWithContext\r\n    return self.currentContext().callWithContext(ctx, func, *args, **kw)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/twisted/python/context.py\", line 85, in callWithContext\r\n    return func(*args,**kw)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/bin/prompt.py\", line 1031, in run\r\n    traceback.print_stack()\r\nTraceback (most recent call last):\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/bin/prompt.py\", line 977, in run\r\n    self.do_import(arguments)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/bin/prompt.py\", line 391, in do_import\r\n    return ImportToken(self.Wallet, get_arg(arguments, 1))\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/Prompt/Commands/Wallet.py\", line 112, in ImportToken\r\n    result = token.Query()\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/Wallets/NEP5Token.py\", line 101, in Query\r\n    engine = ApplicationEngine.Run(sb.ToArray(), exit_on_error=True, gas=Fixed8.FromDecimal(10.0), test_mode=False)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/SmartContract/ApplicationEngine.py\", line 607, in Run\r\n    events.emit(event.event_type, event)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/pymitter/__init__.py\", line 282, in emit\r\n    remove = [l for l in listeners if not l(*args, **kwargs)]\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/pymitter/__init__.py\", line 282, in <listcomp>\r\n    remove = [l for l in listeners if not l(*args, **kwargs)]\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/pymitter/__init__.py\", line 310, in __call__\r\n    self.func(*args, **kwargs)\r\n  File \"/home/ec2-user/venv/lib64/python3.6/site-packages/neo/EventHub.py\", line 62, in on_sc_event\r\n    logger.info(\"[%s][%s] [%s] [tx %s] %s\" % (sc_event.event_type, sc_event.block_number, sc_event.contract_hash, sc_event.tx_hash.ToString(), payload.ToJson(auto_hex=False)))\r\nAttributeError: 'NoneType' object has no attribute 'ToString'\r\n```\r\n\r\nI confirmed all nep5 methods and other my writing methods work expectedly.\r\n\r\n### Your environment\r\n\r\n- OS: Amazon Linux AMI release 2018.03\r\n- neo-python version: v0.8.2\r\n- Python version: 3.6.5\r\n"}}
{"actor":{"display_login":"ixje"}}