{"action":"created","issue":{"url":"https://api.github.com/repos/CityOfZion/neo-python/issues/349","repository_url":"https://api.github.com/repos/CityOfZion/neo-python","labels_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/349/labels{/name}","comments_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/349/comments","events_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/349/events","html_url":"https://github.com/CityOfZion/neo-python/issues/349","id":307466188,"number":349,"title":"sending 10 neo but tx information and block information shows vout value as 1","user":{"login":"yanilkr","id":195142,"avatar_url":"https://avatars0.githubusercontent.com/u/195142?v=4","gravatar_id":"","url":"https://api.github.com/users/yanilkr","html_url":"https://github.com/yanilkr","followers_url":"https://api.github.com/users/yanilkr/followers","following_url":"https://api.github.com/users/yanilkr/following{/other_user}","gists_url":"https://api.github.com/users/yanilkr/gists{/gist_id}","starred_url":"https://api.github.com/users/yanilkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanilkr/subscriptions","organizations_url":"https://api.github.com/users/yanilkr/orgs","repos_url":"https://api.github.com/users/yanilkr/repos","events_url":"https://api.github.com/users/yanilkr/events{/privacy}","received_events_url":"https://api.github.com/users/yanilkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-22T00:38:54Z","updated_at":"2018-03-22T02:31:19Z","closed_at":null,"author_association":"NONE","body":"### Current behavior\r\nI am sending 10 neo to an address using np-prompt, the amount gets sent correctly and returns a transaction id. But when I view the transaction information using `np-prompt tx `, the vout information is wrong.  This is making my code to do wrong calculations.\r\n\r\n- What is the problem?\r\nCould be a python serialization issue. The same behavior is true for 100 or any amount that has trailing zeros. The amount shown strips off trailing zeros for amounts.\r\n\r\nLets say we have two Addresses \"A\" and \"B\". \"A\" has a1 neo and sends x1 amount of neo to \"B\". \r\n\r\nvout value in the transaction information should be something like this\r\n\r\n>\"vout\": [\r\n        {\r\n            \"n\": 0,\r\n            \"asset\": \"0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b\",\r\n            \"value\": \"x1\", // note here x1 is the amount sent \r\n            \"address\": \"B\"\r\n        },\r\n        {\r\n            \"n\": 1,\r\n            \"asset\": \"0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b\",\r\n            \"value\":  a1-x1,\r\n            \"address\": \"A\"\r\n        }\r\n    ]\r\n\r\nWhen I send x1 = 10 neo, the vout n=0 value shows 1 instead of 10\r\n\r\nin the attached image, i send 20 it shows 2\r\n\r\n![image](https://user-images.githubusercontent.com/195142/37744836-a12ba69c-2d2e-11e8-9fd2-174b7d1b0e67.png)\r\n\r\n### Expected behavior\r\n\r\nMake sure the vout value is correct when using np-prompt and rpc server\r\n\r\n### How to reproduce\r\nrun np-prompt on privnet\r\nopen your wallet\r\n> send neo ASdVCHRERMC4VPnjuAxaDswCWBVvv6pRUR 10\r\nenter your password\r\n\r\nyou will get a transaction id.\r\nin my case I got c3a5bbb9d03cf104bb059ce38888a47ace42a6d12e2774b3dad238b3c61e11af\r\n\r\n> tx  c3a5bbb9d03cf104bb059ce38888a47ace42a6d12e2774b3dad238b3c61e11af\r\n\r\nnow inspect the vout array. n = 0, the value should be 10 but it shows 1.\r\n \r\n### Your environment\r\nlatest neo-python.\r\ndebian linux jessie\r\nneo-python v0.6.2\r\nPython 3.6.4 :: Anaconda, Inc.\r\n"},"comment":{"url":"https://api.github.com/repos/CityOfZion/neo-python/issues/comments/375158918","html_url":"https://github.com/CityOfZion/neo-python/issues/349#issuecomment-375158918","issue_url":"https://api.github.com/repos/CityOfZion/neo-python/issues/349","id":375158918,"user":{"login":"yanilkr","id":195142,"avatar_url":"https://avatars0.githubusercontent.com/u/195142?v=4","gravatar_id":"","url":"https://api.github.com/users/yanilkr","html_url":"https://github.com/yanilkr","followers_url":"https://api.github.com/users/yanilkr/followers","following_url":"https://api.github.com/users/yanilkr/following{/other_user}","gists_url":"https://api.github.com/users/yanilkr/gists{/gist_id}","starred_url":"https://api.github.com/users/yanilkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanilkr/subscriptions","organizations_url":"https://api.github.com/users/yanilkr/orgs","repos_url":"https://api.github.com/users/yanilkr/repos","events_url":"https://api.github.com/users/yanilkr/events{/privacy}","received_events_url":"https://api.github.com/users/yanilkr/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T02:31:18Z","updated_at":"2018-03-22T02:31:18Z","author_association":"NONE","body":"You already found the root cause so fast. Thanks for looking into it. Appreciate the quick response."}}
{"actor":{"display_login":"yanilkr"}}