{"action":"created","issue":{"url":"https://api.github.com/repos/richardkiss/pycoin/issues/157","labels_url":"https://api.github.com/repos/richardkiss/pycoin/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/richardkiss/pycoin/issues/157/comments","events_url":"https://api.github.com/repos/richardkiss/pycoin/issues/157/events","html_url":"https://github.com/richardkiss/pycoin/pull/157","id":117443804,"number":157,"title":"Fixed get_opcode for sizes larger than 1 byte","user":{"login":"greenaddress","id":5269298,"avatar_url":"https://avatars.githubusercontent.com/u/5269298?v=3","gravatar_id":"","url":"https://api.github.com/users/greenaddress","html_url":"https://github.com/greenaddress","followers_url":"https://api.github.com/users/greenaddress/followers","following_url":"https://api.github.com/users/greenaddress/following{/other_user}","gists_url":"https://api.github.com/users/greenaddress/gists{/gist_id}","starred_url":"https://api.github.com/users/greenaddress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenaddress/subscriptions","organizations_url":"https://api.github.com/users/greenaddress/orgs","repos_url":"https://api.github.com/users/greenaddress/repos","events_url":"https://api.github.com/users/greenaddress/events{/privacy}","received_events_url":"https://api.github.com/users/greenaddress/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T20:32:02Z","updated_at":"2015-11-17T20:52:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/richardkiss/pycoin/pulls/157","html_url":"https://github.com/richardkiss/pycoin/pull/157","diff_url":"https://github.com/richardkiss/pycoin/pull/157.diff","patch_url":"https://github.com/richardkiss/pycoin/pull/157.patch"},"body":"In 0.42 get_opcode in Python 2 correctly used little endian integers parsing (https://github.com/richardkiss/pycoin/blob/0.42/pycoin/tx/script/tools.py#L52), but in 0.60 it now uses big endian. This causes larger sizes to be parsed incorrectly.\r\n\r\nFor Python 3.2+, the bug was always there."},"comment":{"url":"https://api.github.com/repos/richardkiss/pycoin/issues/comments/157502708","html_url":"https://github.com/richardkiss/pycoin/pull/157#issuecomment-157502708","issue_url":"https://api.github.com/repos/richardkiss/pycoin/issues/157","id":157502708,"user":{"login":"greenaddress","id":5269298,"avatar_url":"https://avatars.githubusercontent.com/u/5269298?v=3","gravatar_id":"","url":"https://api.github.com/users/greenaddress","html_url":"https://github.com/greenaddress","followers_url":"https://api.github.com/users/greenaddress/followers","following_url":"https://api.github.com/users/greenaddress/following{/other_user}","gists_url":"https://api.github.com/users/greenaddress/gists{/gist_id}","starred_url":"https://api.github.com/users/greenaddress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenaddress/subscriptions","organizations_url":"https://api.github.com/users/greenaddress/orgs","repos_url":"https://api.github.com/users/greenaddress/repos","events_url":"https://api.github.com/users/greenaddress/events{/privacy}","received_events_url":"https://api.github.com/users/greenaddress/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T20:52:37Z","updated_at":"2015-11-17T20:52:37Z","body":"Endianness was also wrong in `bin_script` - updated it too and changed the `validate_tx_test.py` test to reflect different functions used by tools now."}}