{"action":"created","issue":{"url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/25","repository_url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS","labels_url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/25/comments","events_url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/25/events","html_url":"https://github.com/TrustWallet/TrustSDK-iOS/issues/25","id":362618430,"node_id":"MDU6SXNzdWUzNjI2MTg0MzA=","number":25,"title":"Questions on the functional","user":{"login":"dmitry-kanunnikoff","id":7009886,"node_id":"MDQ6VXNlcjcwMDk4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/7009886?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitry-kanunnikoff","html_url":"https://github.com/dmitry-kanunnikoff","followers_url":"https://api.github.com/users/dmitry-kanunnikoff/followers","following_url":"https://api.github.com/users/dmitry-kanunnikoff/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-kanunnikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-kanunnikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-kanunnikoff/subscriptions","organizations_url":"https://api.github.com/users/dmitry-kanunnikoff/orgs","repos_url":"https://api.github.com/users/dmitry-kanunnikoff/repos","events_url":"https://api.github.com/users/dmitry-kanunnikoff/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-kanunnikoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-21T13:33:40Z","updated_at":"2018-09-21T17:20:11Z","closed_at":null,"author_association":"NONE","body":"Good afternoon.\r\n\r\nTell me, please, how can I decode `signedTransaction` data to Transaction object?\r\n\r\nOn Android I've done like this:\r\n\r\n`val tx = Geth.newTransactionFromRLP(Numeric.hexStringToByteArray(response.result))`\r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/comments/423611052","html_url":"https://github.com/TrustWallet/TrustSDK-iOS/issues/25#issuecomment-423611052","issue_url":"https://api.github.com/repos/TrustWallet/TrustSDK-iOS/issues/25","id":423611052,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzYxMTA1Mg==","user":{"login":"dmitry-kanunnikoff","id":7009886,"node_id":"MDQ6VXNlcjcwMDk4ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/7009886?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitry-kanunnikoff","html_url":"https://github.com/dmitry-kanunnikoff","followers_url":"https://api.github.com/users/dmitry-kanunnikoff/followers","following_url":"https://api.github.com/users/dmitry-kanunnikoff/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-kanunnikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-kanunnikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-kanunnikoff/subscriptions","organizations_url":"https://api.github.com/users/dmitry-kanunnikoff/orgs","repos_url":"https://api.github.com/users/dmitry-kanunnikoff/repos","events_url":"https://api.github.com/users/dmitry-kanunnikoff/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-kanunnikoff/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T17:20:11Z","updated_at":"2018-09-21T17:20:11Z","author_association":"NONE","body":"Made by\r\n\r\n```\r\nvar error: NSError?\r\nlet tx = Geth.GethNewTransactionFromRLP(Data(bytes: signedTransaction.hexString.hex2bytes), &error)\r\n```\r\n\r\nwhere\r\n\r\n```\r\nextension String {\r\n    var hex2bytes: [UInt8] {\r\n        let hexa = Array(self)\r\n        return stride(from: 0, to: count, by: 2).compactMap { UInt8(String(hexa[$0 ..< $0.advanced(by: 2)]), radix: 16) }\r\n    }\r\n}\r\n```\r\n\r\nand \r\n\r\n`Geth` - framework, imported from CocoaPods.\r\n\r\nPlease, close this issue. Thank you."}}
{"actor":{"display_login":"dmitry-kanunnikoff"}}