{"action":"created","comment":{"url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/comments/227735787","pull_request_review_id":167841460,"id":227735787,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzczNTc4Nw==","diff_hunk":"@@ -59,19 +66,29 @@ class Transaction{\n }\n \n class Block {\n+    /**\n+     * @param {Date} timestamp \n+     * @param {Transaction[]} transactions \n+     * @param {string} previousHash \n+     */\n     constructor(timestamp, transactions, previousHash = '') {\n         this.previousHash = previousHash;\n-        this.timestamp = timestamp;\n+        this.timestamp = timestamp.toISOString();","path":"src/blockchain.js","position":51,"original_position":51,"commit_id":"be3c54d44622cf93d517f5340f9d4766d0f0ce1e","original_commit_id":"3dcc49d5458e8f11a2e49a89074adbb3e6793b9a","user":{"login":"Savjee","id":817109,"node_id":"MDQ6VXNlcjgxNzEwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/817109?v=4","gravatar_id":"","url":"https://api.github.com/users/Savjee","html_url":"https://github.com/Savjee","followers_url":"https://api.github.com/users/Savjee/followers","following_url":"https://api.github.com/users/Savjee/following{/other_user}","gists_url":"https://api.github.com/users/Savjee/gists{/gist_id}","starred_url":"https://api.github.com/users/Savjee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Savjee/subscriptions","organizations_url":"https://api.github.com/users/Savjee/orgs","repos_url":"https://api.github.com/users/Savjee/repos","events_url":"https://api.github.com/users/Savjee/events{/privacy}","received_events_url":"https://api.github.com/users/Savjee/received_events","type":"User","site_admin":false},"body":"Actually a number is more usable because you can more easily sort it.\r\nSo for now: revert back to the number and maybe you can open a second PR and create a method to parse the data to an ISO string?","created_at":"2018-10-24T10:43:06Z","updated_at":"2018-10-24T10:43:06Z","html_url":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17#discussion_r227735787","pull_request_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/comments/227735787"},"html":{"href":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17#discussion_r227735787"},"pull_request":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17"}},"in_reply_to_id":227711155},"pull_request":{"url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17","id":225251450,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MjUxNDUw","html_url":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17","diff_url":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17.diff","patch_url":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17.patch","issue_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/17","number":17,"state":"open","locked":false,"title":"small Style Changes & JSDoc (for typing support)","user":{"login":"hasezoey","id":10911626,"node_id":"MDQ6VXNlcjEwOTExNjI2","avatar_url":"https://avatars1.githubusercontent.com/u/10911626?v=4","gravatar_id":"","url":"https://api.github.com/users/hasezoey","html_url":"https://github.com/hasezoey","followers_url":"https://api.github.com/users/hasezoey/followers","following_url":"https://api.github.com/users/hasezoey/following{/other_user}","gists_url":"https://api.github.com/users/hasezoey/gists{/gist_id}","starred_url":"https://api.github.com/users/hasezoey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasezoey/subscriptions","organizations_url":"https://api.github.com/users/hasezoey/orgs","repos_url":"https://api.github.com/users/hasezoey/repos","events_url":"https://api.github.com/users/hasezoey/events{/privacy}","received_events_url":"https://api.github.com/users/hasezoey/received_events","type":"User","site_admin":false},"body":"adding JSDoc,\r\nadding EOF File endings (last line is a new blank line),\r\nadding some \"\\n\" to remove empty console.logs,\r\nremoving some unnecessary black lines when a function starts / ends,\r\n\r\nplease say when something is wrong or something should / could be changed","created_at":"2018-10-24T03:14:45Z","updated_at":"2018-10-24T10:43:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6b1295d81e12ca2ce5d0a04fd480213344c9059","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17/commits","review_comments_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17/comments","review_comment_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/17/comments","statuses_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/statuses/be3c54d44622cf93d517f5340f9d4766d0f0ce1e","head":{"label":"hasezoey:master","ref":"master","sha":"be3c54d44622cf93d517f5340f9d4766d0f0ce1e","user":{"login":"hasezoey","id":10911626,"node_id":"MDQ6VXNlcjEwOTExNjI2","avatar_url":"https://avatars1.githubusercontent.com/u/10911626?v=4","gravatar_id":"","url":"https://api.github.com/users/hasezoey","html_url":"https://github.com/hasezoey","followers_url":"https://api.github.com/users/hasezoey/followers","following_url":"https://api.github.com/users/hasezoey/following{/other_user}","gists_url":"https://api.github.com/users/hasezoey/gists{/gist_id}","starred_url":"https://api.github.com/users/hasezoey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasezoey/subscriptions","organizations_url":"https://api.github.com/users/hasezoey/orgs","repos_url":"https://api.github.com/users/hasezoey/repos","events_url":"https://api.github.com/users/hasezoey/events{/privacy}","received_events_url":"https://api.github.com/users/hasezoey/received_events","type":"User","site_admin":false},"repo":{"id":135252580,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUyNTI1ODA=","name":"SavjeeCoin","full_name":"hasezoey/SavjeeCoin","private":false,"owner":{"login":"hasezoey","id":10911626,"node_id":"MDQ6VXNlcjEwOTExNjI2","avatar_url":"https://avatars1.githubusercontent.com/u/10911626?v=4","gravatar_id":"","url":"https://api.github.com/users/hasezoey","html_url":"https://github.com/hasezoey","followers_url":"https://api.github.com/users/hasezoey/followers","following_url":"https://api.github.com/users/hasezoey/following{/other_user}","gists_url":"https://api.github.com/users/hasezoey/gists{/gist_id}","starred_url":"https://api.github.com/users/hasezoey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasezoey/subscriptions","organizations_url":"https://api.github.com/users/hasezoey/orgs","repos_url":"https://api.github.com/users/hasezoey/repos","events_url":"https://api.github.com/users/hasezoey/events{/privacy}","received_events_url":"https://api.github.com/users/hasezoey/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hasezoey/SavjeeCoin","description":"JavaScript example of a Blockchain","fork":true,"url":"https://api.github.com/repos/hasezoey/SavjeeCoin","forks_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/forks","keys_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/teams","hooks_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/hooks","issue_events_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/issues/events{/number}","events_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/events","assignees_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/assignees{/user}","branches_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/branches{/branch}","tags_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/tags","blobs_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/statuses/{sha}","languages_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/languages","stargazers_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/stargazers","contributors_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/contributors","subscribers_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/subscribers","subscription_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/subscription","commits_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/contents/{+path}","compare_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/merges","archive_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/downloads","issues_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/issues{/number}","pulls_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/pulls{/number}","milestones_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/milestones{/number}","notifications_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/labels{/name}","releases_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/releases{/id}","deployments_url":"https://api.github.com/repos/hasezoey/SavjeeCoin/deployments","created_at":"2018-05-29T06:41:42Z","updated_at":"2018-10-24T09:28:17Z","pushed_at":"2018-10-24T09:28:15Z","git_url":"git://github.com/hasezoey/SavjeeCoin.git","ssh_url":"git@github.com:hasezoey/SavjeeCoin.git","clone_url":"https://github.com/hasezoey/SavjeeCoin.git","svn_url":"https://github.com/hasezoey/SavjeeCoin","homepage":"","size":32,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SavjeeTutorials:master","ref":"master","sha":"b846b7600e352c045e57629ab45033b3b179620c","user":{"login":"SavjeeTutorials","id":23124351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTI0MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/23124351?v=4","gravatar_id":"","url":"https://api.github.com/users/SavjeeTutorials","html_url":"https://github.com/SavjeeTutorials","followers_url":"https://api.github.com/users/SavjeeTutorials/followers","following_url":"https://api.github.com/users/SavjeeTutorials/following{/other_user}","gists_url":"https://api.github.com/users/SavjeeTutorials/gists{/gist_id}","starred_url":"https://api.github.com/users/SavjeeTutorials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavjeeTutorials/subscriptions","organizations_url":"https://api.github.com/users/SavjeeTutorials/orgs","repos_url":"https://api.github.com/users/SavjeeTutorials/repos","events_url":"https://api.github.com/users/SavjeeTutorials/events{/privacy}","received_events_url":"https://api.github.com/users/SavjeeTutorials/received_events","type":"Organization","site_admin":false},"repo":{"id":105263520,"node_id":"MDEwOlJlcG9zaXRvcnkxMDUyNjM1MjA=","name":"SavjeeCoin","full_name":"SavjeeTutorials/SavjeeCoin","private":false,"owner":{"login":"SavjeeTutorials","id":23124351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMTI0MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/23124351?v=4","gravatar_id":"","url":"https://api.github.com/users/SavjeeTutorials","html_url":"https://github.com/SavjeeTutorials","followers_url":"https://api.github.com/users/SavjeeTutorials/followers","following_url":"https://api.github.com/users/SavjeeTutorials/following{/other_user}","gists_url":"https://api.github.com/users/SavjeeTutorials/gists{/gist_id}","starred_url":"https://api.github.com/users/SavjeeTutorials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SavjeeTutorials/subscriptions","organizations_url":"https://api.github.com/users/SavjeeTutorials/orgs","repos_url":"https://api.github.com/users/SavjeeTutorials/repos","events_url":"https://api.github.com/users/SavjeeTutorials/events{/privacy}","received_events_url":"https://api.github.com/users/SavjeeTutorials/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SavjeeTutorials/SavjeeCoin","description":"Code to demonstrate principles behind blockchains","fork":false,"url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin","forks_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/forks","keys_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/teams","hooks_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/hooks","issue_events_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/events{/number}","events_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/events","assignees_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/assignees{/user}","branches_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/branches{/branch}","tags_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/tags","blobs_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/statuses/{sha}","languages_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/languages","stargazers_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/stargazers","contributors_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/contributors","subscribers_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/subscribers","subscription_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/subscription","commits_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/contents/{+path}","compare_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/merges","archive_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/downloads","issues_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues{/number}","pulls_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls{/number}","milestones_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/milestones{/number}","notifications_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/labels{/name}","releases_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/releases{/id}","deployments_url":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/deployments","created_at":"2017-09-29T11:09:55Z","updated_at":"2018-10-24T09:29:37Z","pushed_at":"2018-10-24T09:28:17Z","git_url":"git://github.com/SavjeeTutorials/SavjeeCoin.git","ssh_url":"git@github.com:SavjeeTutorials/SavjeeCoin.git","clone_url":"https://github.com/SavjeeTutorials/SavjeeCoin.git","svn_url":"https://github.com/SavjeeTutorials/SavjeeCoin","homepage":null,"size":26,"stargazers_count":585,"watchers_count":585,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":286,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":286,"open_issues":2,"watchers":585,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17"},"html":{"href":"https://github.com/SavjeeTutorials/SavjeeCoin/pull/17"},"issue":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/17"},"comments":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/SavjeeTutorials/SavjeeCoin/statuses/be3c54d44622cf93d517f5340f9d4766d0f0ce1e"}},"author_association":"NONE"}}
{"actor":{"display_login":"Savjee"}}