{"action":"created","comment":{"url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/comments/157432154","pull_request_review_id":84055605,"id":157432154,"diff_hunk":"@@ -1,9 +1,16 @@\n import Config from '../../config/config';\n import Contracts from '../../config/contracts';\n+import utils from '../modules/qweb3/src/utils';\n \n const Qweb3 = require('../modules/qweb3/index');\n const qweb3 = new Qweb3(Config.QTUM_RPC_ADDRESS);\n \n+/** @type {number} Length of string of eventName */\n+const EVENTNAME_STR_LENGTH = 32 * 2; // 32 bytes times 2 hex character","path":"src/contracts/event_factory.js","position":null,"original_position":9,"commit_id":"a237fbc7d7a8ca74369ea734fc180d725e37e575","original_commit_id":"b88499ba52c803a76626b4b54b001490879cdbd8","user":{"login":"chrisli30","id":2616844,"avatar_url":"https://avatars0.githubusercontent.com/u/2616844?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisli30","html_url":"https://github.com/chrisli30","followers_url":"https://api.github.com/users/chrisli30/followers","following_url":"https://api.github.com/users/chrisli30/following{/other_user}","gists_url":"https://api.github.com/users/chrisli30/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisli30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisli30/subscriptions","organizations_url":"https://api.github.com/users/chrisli30/orgs","repos_url":"https://api.github.com/users/chrisli30/repos","events_url":"https://api.github.com/users/chrisli30/events{/privacy}","received_events_url":"https://api.github.com/users/chrisli30/received_events","type":"User","site_admin":false},"body":"Okay, grepped stringArrayToHex in qweb3. Gotcha","created_at":"2017-12-18T09:21:00Z","updated_at":"2017-12-18T09:22:56Z","html_url":"https://github.com/bodhiproject/bodhi-api/pull/9#discussion_r157432154","pull_request_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/comments/157432154"},"html":{"href":"https://github.com/bodhiproject/bodhi-api/pull/9#discussion_r157432154"},"pull_request":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9"}},"in_reply_to_id":157429944},"pull_request":{"url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9","id":158825770,"html_url":"https://github.com/bodhiproject/bodhi-api/pull/9","diff_url":"https://github.com/bodhiproject/bodhi-api/pull/9.diff","patch_url":"https://github.com/bodhiproject/bodhi-api/pull/9.patch","issue_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/9","number":9,"state":"open","locked":false,"title":"1. Updated vote func to make params the same as bet(); 2. Updated CreateTopic() to convert string eventName to string[]","user":{"login":"chrisli30","id":2616844,"avatar_url":"https://avatars0.githubusercontent.com/u/2616844?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisli30","html_url":"https://github.com/chrisli30","followers_url":"https://api.github.com/users/chrisli30/followers","following_url":"https://api.github.com/users/chrisli30/following{/other_user}","gists_url":"https://api.github.com/users/chrisli30/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisli30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisli30/subscriptions","organizations_url":"https://api.github.com/users/chrisli30/orgs","repos_url":"https://api.github.com/users/chrisli30/repos","events_url":"https://api.github.com/users/chrisli30/events{/privacy}","received_events_url":"https://api.github.com/users/chrisli30/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-18T03:56:00Z","updated_at":"2017-12-18T09:22:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c067a84b84abf58a856239536907839bc70996c6","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9/commits","review_comments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9/comments","review_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/9/comments","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-api/statuses/a237fbc7d7a8ca74369ea734fc180d725e37e575","head":{"label":"bodhiproject:chris","ref":"chris","sha":"a237fbc7d7a8ca74369ea734fc180d725e37e575","user":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"repo":{"id":104853225,"name":"bodhi-api","full_name":"bodhiproject/bodhi-api","owner":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bodhiproject/bodhi-api","description":"An open source blockchain explorer for monitoring Bodhi platform","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-api","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-api/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-api/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-api/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-api/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-api/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-api/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-api/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-api/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-api/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-api/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-api/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-api/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-api/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-api/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-api/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-api/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-api/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-api/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-api/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/deployments","created_at":"2017-09-26T07:49:18Z","updated_at":"2017-12-13T20:31:00Z","pushed_at":"2017-12-18T09:17:33Z","git_url":"git://github.com/bodhiproject/bodhi-api.git","ssh_url":"git@github.com:bodhiproject/bodhi-api.git","clone_url":"https://github.com/bodhiproject/bodhi-api.git","svn_url":"https://github.com/bodhiproject/bodhi-api","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"bodhiproject:master","ref":"master","sha":"3dbceac4a5b7dfb07b74cafcc873512ba0349c31","user":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"repo":{"id":104853225,"name":"bodhi-api","full_name":"bodhiproject/bodhi-api","owner":{"login":"bodhiproject","id":29763948,"avatar_url":"https://avatars2.githubusercontent.com/u/29763948?v=4","gravatar_id":"","url":"https://api.github.com/users/bodhiproject","html_url":"https://github.com/bodhiproject","followers_url":"https://api.github.com/users/bodhiproject/followers","following_url":"https://api.github.com/users/bodhiproject/following{/other_user}","gists_url":"https://api.github.com/users/bodhiproject/gists{/gist_id}","starred_url":"https://api.github.com/users/bodhiproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodhiproject/subscriptions","organizations_url":"https://api.github.com/users/bodhiproject/orgs","repos_url":"https://api.github.com/users/bodhiproject/repos","events_url":"https://api.github.com/users/bodhiproject/events{/privacy}","received_events_url":"https://api.github.com/users/bodhiproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bodhiproject/bodhi-api","description":"An open source blockchain explorer for monitoring Bodhi platform","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-api","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-api/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-api/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-api/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-api/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-api/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-api/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-api/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-api/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-api/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-api/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-api/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-api/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-api/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-api/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-api/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-api/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-api/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-api/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-api/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-api/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-api/deployments","created_at":"2017-09-26T07:49:18Z","updated_at":"2017-12-13T20:31:00Z","pushed_at":"2017-12-18T09:17:33Z","git_url":"git://github.com/bodhiproject/bodhi-api.git","ssh_url":"git@github.com:bodhiproject/bodhi-api.git","clone_url":"https://github.com/bodhiproject/bodhi-api.git","svn_url":"https://github.com/bodhiproject/bodhi-api","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9"},"html":{"href":"https://github.com/bodhiproject/bodhi-api/pull/9"},"issue":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/9"},"comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/bodhiproject/bodhi-api/statuses/a237fbc7d7a8ca74369ea734fc180d725e37e575"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"chrisli30"}}