{"action":"created","issue":{"url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/58","repository_url":"https://api.github.com/repos/paritytech/pwasm-abi","labels_url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/58/comments","events_url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/58/events","html_url":"https://github.com/paritytech/pwasm-abi/issues/58","id":342393378,"node_id":"MDU6SXNzdWUzNDIzOTMzNzg=","number":58,"title":"Add support for repr enums","user":{"login":"Pzixel","id":11201122,"node_id":"MDQ6VXNlcjExMjAxMTIy","avatar_url":"https://avatars3.githubusercontent.com/u/11201122?v=4","gravatar_id":"","url":"https://api.github.com/users/Pzixel","html_url":"https://github.com/Pzixel","followers_url":"https://api.github.com/users/Pzixel/followers","following_url":"https://api.github.com/users/Pzixel/following{/other_user}","gists_url":"https://api.github.com/users/Pzixel/gists{/gist_id}","starred_url":"https://api.github.com/users/Pzixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pzixel/subscriptions","organizations_url":"https://api.github.com/users/Pzixel/orgs","repos_url":"https://api.github.com/users/Pzixel/repos","events_url":"https://api.github.com/users/Pzixel/events{/privacy}","received_events_url":"https://api.github.com/users/Pzixel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T16:01:49Z","updated_at":"2018-07-18T16:07:06Z","closed_at":null,"author_association":"NONE","body":"Consider following code:\r\n\r\n```rust\r\n#[repr(u8)]\r\n#[derive(Debug, Copy, Clone, Eq, PartialEq)]\r\nenum MyEnum\r\n{\r\n\tA,\r\n\tB,\r\n\tC\r\n}\r\n\r\n#[eth_abi(TokenEndpoint, TokenClient)]\r\npub trait SampleContractInterface {\r\n\tfn constructor(&mut self, myEnum: MyEnum);\r\n}\r\n```\r\n\r\nExpected result: everything works\r\n\r\nActual result: \r\n\r\n```text\r\nerror: custom attribute panicked\r\n  --> src\\lib.rs:65:5\r\n   |\r\n65 |     #[eth_abi(TokenEndpoint, TokenClient)]\r\n   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n   |\r\n   = help: message: Unable to handle param of type MyEnum: not supported by abi\r\n\r\nerror: aborting due to previous error\r\n\r\nerror: Could not compile `pwasm-abstractions-contract`.\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/comments/405986271","html_url":"https://github.com/paritytech/pwasm-abi/issues/58#issuecomment-405986271","issue_url":"https://api.github.com/repos/paritytech/pwasm-abi/issues/58","id":405986271,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTk4NjI3MQ==","user":{"login":"Pzixel","id":11201122,"node_id":"MDQ6VXNlcjExMjAxMTIy","avatar_url":"https://avatars3.githubusercontent.com/u/11201122?v=4","gravatar_id":"","url":"https://api.github.com/users/Pzixel","html_url":"https://github.com/Pzixel","followers_url":"https://api.github.com/users/Pzixel/followers","following_url":"https://api.github.com/users/Pzixel/following{/other_user}","gists_url":"https://api.github.com/users/Pzixel/gists{/gist_id}","starred_url":"https://api.github.com/users/Pzixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pzixel/subscriptions","organizations_url":"https://api.github.com/users/Pzixel/orgs","repos_url":"https://api.github.com/users/Pzixel/repos","events_url":"https://api.github.com/users/Pzixel/events{/privacy}","received_events_url":"https://api.github.com/users/Pzixel/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T16:07:06Z","updated_at":"2018-07-18T16:07:06Z","author_association":"NONE","body":"Btw, u8/i8/u16/i16 types are not supported too. I believe they should be here too."}}
{"actor":{"display_login":"Pzixel"}}