{"action":"created","comment":{"url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/comments/158580425","pull_request_review_id":85418362,"id":158580425,"diff_hunk":"@@ -85,12 +93,48 @@ class Topbar extends React.PureComponent {\n     this.handleCancel = this.handleCancel.bind(this);\n     this.onAddressInputChange = this.onAddressInputChange.bind(this);\n     this.onAddressDropdownClick = this.onAddressDropdownClick.bind(this);\n-    this.getSelectedAddressObject = this.getSelectedAddressObject.bind(this);\n     this.onCopyClicked = this.onCopyClicked.bind(this);\n   }\n \n   componentWillMount() {\n-    this.props.listUnspent();\n+    const { onGetBlockCount, listUnspent } = this.props;\n+\n+    (function startPoll() {\n+      onGetBlockCount();\n+      listUnspent();\n+      setTimeout(startPoll, POOL_INTERVAL);\n+    }());\n+  }\n+\n+  componentWillReceiveProps(nextProps) {\n+    const {\n+      onGetBlockCount, getBotBalance, selectedWalletAddress,\n+    } = this.props;\n+\n+\n+    // Call API to retrieve BOT balance if wallet addresses have changed\n+    if (!_.isEqual(this.props.walletAddrs, nextProps.walletAddrs)) {\n+      _.each(nextProps.walletAddrs, (addressObj) => {\n+        const ownerAddress = addressObj.address;\n+        let senderAddress;\n+\n+        // Determine an address that has enough qtum for gas to be a sender\n+        if (addressObj.qtum >= MINIMAL_GAS_FEE) {","path":"src/containers/Topbar/Topbar.js","position":76,"original_position":76,"commit_id":"c2a33ee1210e96595cb12545fcf8c150b95ba8ae","original_commit_id":"c2a33ee1210e96595cb12545fcf8c150b95ba8ae","user":{"login":"dwalintukan","id":4350404,"avatar_url":"https://avatars2.githubusercontent.com/u/4350404?v=4","gravatar_id":"","url":"https://api.github.com/users/dwalintukan","html_url":"https://github.com/dwalintukan","followers_url":"https://api.github.com/users/dwalintukan/followers","following_url":"https://api.github.com/users/dwalintukan/following{/other_user}","gists_url":"https://api.github.com/users/dwalintukan/gists{/gist_id}","starred_url":"https://api.github.com/users/dwalintukan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwalintukan/subscriptions","organizations_url":"https://api.github.com/users/dwalintukan/orgs","repos_url":"https://api.github.com/users/dwalintukan/repos","events_url":"https://api.github.com/users/dwalintukan/events{/privacy}","received_events_url":"https://api.github.com/users/dwalintukan/received_events","type":"User","site_admin":false},"body":"what about if a user wants to `callcontract` (no gas needed) from an address that has no qtum?","created_at":"2017-12-23T10:32:23Z","updated_at":"2017-12-23T10:51:48Z","html_url":"https://github.com/bodhiproject/bodhi-ui/pull/52#discussion_r158580425","pull_request_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/comments/158580425"},"html":{"href":"https://github.com/bodhiproject/bodhi-ui/pull/52#discussion_r158580425"},"pull_request":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52","id":159930856,"html_url":"https://github.com/bodhiproject/bodhi-ui/pull/52","diff_url":"https://github.com/bodhiproject/bodhi-ui/pull/52.diff","patch_url":"https://github.com/bodhiproject/bodhi-ui/pull/52.patch","issue_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/52","number":52,"state":"open","locked":false,"title":"Added block count polling function and updated createTopic page","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-22T20:40:53Z","updated_at":"2017-12-23T10:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efc2e5453fa746d81580246a88061a284c8ac09f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52/commits","review_comments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52/comments","review_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/52/comments","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/statuses/c2a33ee1210e96595cb12545fcf8c150b95ba8ae","head":{"label":"bodhiproject:chris2","ref":"chris2","sha":"c2a33ee1210e96595cb12545fcf8c150b95ba8ae","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":104853568,"name":"bodhi-ui","full_name":"bodhiproject/bodhi-ui","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-ui","description":"An open source ui for interacting with bodhi api","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-ui","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/deployments","created_at":"2017-09-26T07:52:34Z","updated_at":"2017-12-13T20:30:42Z","pushed_at":"2017-12-23T09:04:21Z","git_url":"git://github.com/bodhiproject/bodhi-ui.git","ssh_url":"git@github.com:bodhiproject/bodhi-ui.git","clone_url":"https://github.com/bodhiproject/bodhi-ui.git","svn_url":"https://github.com/bodhiproject/bodhi-ui","homepage":null,"size":3368,"stargazers_count":1,"watchers_count":1,"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":18,"license":null,"forks":0,"open_issues":18,"watchers":1,"default_branch":"master"}},"base":{"label":"bodhiproject:master","ref":"master","sha":"dc60f79a01c819dfc3120adfe4aa34d4e13a41df","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":104853568,"name":"bodhi-ui","full_name":"bodhiproject/bodhi-ui","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-ui","description":"An open source ui for interacting with bodhi api","fork":false,"url":"https://api.github.com/repos/bodhiproject/bodhi-ui","forks_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/forks","keys_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/teams","hooks_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/hooks","issue_events_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/events{/number}","events_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/events","assignees_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/assignees{/user}","branches_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/branches{/branch}","tags_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/tags","blobs_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/languages","stargazers_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/stargazers","contributors_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/contributors","subscribers_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/subscribers","subscription_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/subscription","commits_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/contents/{+path}","compare_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/merges","archive_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/downloads","issues_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues{/number}","pulls_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/labels{/name}","releases_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/releases{/id}","deployments_url":"https://api.github.com/repos/bodhiproject/bodhi-ui/deployments","created_at":"2017-09-26T07:52:34Z","updated_at":"2017-12-13T20:30:42Z","pushed_at":"2017-12-23T09:04:21Z","git_url":"git://github.com/bodhiproject/bodhi-ui.git","ssh_url":"git@github.com:bodhiproject/bodhi-ui.git","clone_url":"https://github.com/bodhiproject/bodhi-ui.git","svn_url":"https://github.com/bodhiproject/bodhi-ui","homepage":null,"size":3368,"stargazers_count":1,"watchers_count":1,"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":18,"license":null,"forks":0,"open_issues":18,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52"},"html":{"href":"https://github.com/bodhiproject/bodhi-ui/pull/52"},"issue":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/52"},"comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/bodhiproject/bodhi-ui/statuses/c2a33ee1210e96595cb12545fcf8c150b95ba8ae"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dwalintukan"}}