{"action":"created","issue":{"url":"https://api.github.com/repos/tronprotocol/tron-web/issues/104","repository_url":"https://api.github.com/repos/tronprotocol/tron-web","labels_url":"https://api.github.com/repos/tronprotocol/tron-web/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/tronprotocol/tron-web/issues/104/comments","events_url":"https://api.github.com/repos/tronprotocol/tron-web/issues/104/events","html_url":"https://github.com/tronprotocol/tron-web/issues/104","id":384371662,"node_id":"MDU6SXNzdWUzODQzNzE2NjI=","number":104,"title":"[Enhancement] - Add a note to the transaction","user":{"login":"serderovsh","id":24723913,"node_id":"MDQ6VXNlcjI0NzIzOTEz","avatar_url":"https://avatars3.githubusercontent.com/u/24723913?v=4","gravatar_id":"","url":"https://api.github.com/users/serderovsh","html_url":"https://github.com/serderovsh","followers_url":"https://api.github.com/users/serderovsh/followers","following_url":"https://api.github.com/users/serderovsh/following{/other_user}","gists_url":"https://api.github.com/users/serderovsh/gists{/gist_id}","starred_url":"https://api.github.com/users/serderovsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serderovsh/subscriptions","organizations_url":"https://api.github.com/users/serderovsh/orgs","repos_url":"https://api.github.com/users/serderovsh/repos","events_url":"https://api.github.com/users/serderovsh/events{/privacy}","received_events_url":"https://api.github.com/users/serderovsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-11-26T15:06:07Z","updated_at":"2018-11-26T18:38:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I do not understand, for a python I wrote a similar condition works well. And in TronWEB gives an error.\r\n```\r\n{ code: 'SIGERROR',\r\n  message: '76616c6964617465207369676e6174757265206572726f72' }\r\n```\r\n\r\nThis is not a complete example.\r\n```javascript\r\nsendWithNote(to = false,\r\n                 amount = 0,\r\n                 note = false,\r\n                 tokenID = false,\r\n                 from = this.tronWeb.defaultAddress.hex,\r\n                 callback = false)\r\n    {\r\n        if(tokenID === false) {\r\n            let transaction = this.sendTrx(to, amount, from, callback);\r\n            transaction.then(transaction => {\r\n                //or transaction.raw_data.data = this.tronWeb.fromUtf8(note);\r\n                transaction['raw_data']['data'] = this.tronWeb.fromUtf8(note);\r\n            });\r\n            return transaction;\r\n        }\r\n\r\n        return this.sendToken(to, amount, tokenID, from, callback);\r\n    }\r\n```\r\n\r\nNote: **JSON results are identical**\r\n"},"comment":{"url":"https://api.github.com/repos/tronprotocol/tron-web/issues/comments/441749313","html_url":"https://github.com/tronprotocol/tron-web/issues/104#issuecomment-441749313","issue_url":"https://api.github.com/repos/tronprotocol/tron-web/issues/104","id":441749313,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTc0OTMxMw==","user":{"login":"serderovsh","id":24723913,"node_id":"MDQ6VXNlcjI0NzIzOTEz","avatar_url":"https://avatars3.githubusercontent.com/u/24723913?v=4","gravatar_id":"","url":"https://api.github.com/users/serderovsh","html_url":"https://github.com/serderovsh","followers_url":"https://api.github.com/users/serderovsh/followers","following_url":"https://api.github.com/users/serderovsh/following{/other_user}","gists_url":"https://api.github.com/users/serderovsh/gists{/gist_id}","starred_url":"https://api.github.com/users/serderovsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serderovsh/subscriptions","organizations_url":"https://api.github.com/users/serderovsh/orgs","repos_url":"https://api.github.com/users/serderovsh/repos","events_url":"https://api.github.com/users/serderovsh/events{/privacy}","received_events_url":"https://api.github.com/users/serderovsh/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T18:38:54Z","updated_at":"2018-11-26T18:38:54Z","author_association":"CONTRIBUTOR","body":"I use this scheme in \"PHP\", \"Python\" and \"Go\". \r\n**Everything works, \"raw_data.data\" is recording data**"}}
{"actor":{"display_login":"serderovsh"}}