{"action":"created","comment":{"url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/comments/196276741","pull_request_review_id":129796079,"id":196276741,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjI3Njc0MQ==","diff_hunk":"@@ -17,7 +19,23 @@ export default {\n   getters: {\n     isPublicAccount(state) {\n       return state.activeAccount && state.activeAccount._privKey === null;\n-    }\n+    },\n+    balance(state) {\n+      const totalAmountActiveTnx = state.pendingTransactions\n+        .filter(tnx => tnx.canseled === false)\n+        .map(tnx => {\n+          const { value, gasLimit, gasPrice } = tnx;\n+          const limit = hexToNumberString(gasLimit);\n+          const price = hexToNumberString(gasPrice);\n+          const gasCost = toBN(limit).mul(toBN(price));","path":"src/store/accounts/accounts.js","position":20,"original_position":20,"commit_id":"0afebc50f22a401a8bfdad302c9cd72c8d277090","original_commit_id":"0afebc50f22a401a8bfdad302c9cd72c8d277090","user":{"login":"machinae","id":828330,"node_id":"MDQ6VXNlcjgyODMzMA==","avatar_url":"https://avatars3.githubusercontent.com/u/828330?v=4","gravatar_id":"","url":"https://api.github.com/users/machinae","html_url":"https://github.com/machinae","followers_url":"https://api.github.com/users/machinae/followers","following_url":"https://api.github.com/users/machinae/following{/other_user}","gists_url":"https://api.github.com/users/machinae/gists{/gist_id}","starred_url":"https://api.github.com/users/machinae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machinae/subscriptions","organizations_url":"https://api.github.com/users/machinae/orgs","repos_url":"https://api.github.com/users/machinae/repos","events_url":"https://api.github.com/users/machinae/events{/privacy}","received_events_url":"https://api.github.com/users/machinae/received_events","type":"User","site_admin":false},"body":"не надо тут тоже BN, можно просто использовать web3 fromWei. газ всегда считается в wei","created_at":"2018-06-19T02:06:45Z","updated_at":"2018-06-19T02:11:29Z","html_url":"https://github.com/endpass/endpass-wallet/pull/61#discussion_r196276741","pull_request_url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/comments/196276741"},"html":{"href":"https://github.com/endpass/endpass-wallet/pull/61#discussion_r196276741"},"pull_request":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61","id":195475696,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDc1Njk2","html_url":"https://github.com/endpass/endpass-wallet/pull/61","diff_url":"https://github.com/endpass/endpass-wallet/pull/61.diff","patch_url":"https://github.com/endpass/endpass-wallet/pull/61.patch","issue_url":"https://api.github.com/repos/endpass/endpass-wallet/issues/61","number":61,"state":"open","locked":false,"title":"Improvement send page","user":{"login":"kazurus","id":32077191,"node_id":"MDQ6VXNlcjMyMDc3MTkx","avatar_url":"https://avatars1.githubusercontent.com/u/32077191?v=4","gravatar_id":"","url":"https://api.github.com/users/kazurus","html_url":"https://github.com/kazurus","followers_url":"https://api.github.com/users/kazurus/followers","following_url":"https://api.github.com/users/kazurus/following{/other_user}","gists_url":"https://api.github.com/users/kazurus/gists{/gist_id}","starred_url":"https://api.github.com/users/kazurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazurus/subscriptions","organizations_url":"https://api.github.com/users/kazurus/orgs","repos_url":"https://api.github.com/users/kazurus/repos","events_url":"https://api.github.com/users/kazurus/events{/privacy}","received_events_url":"https://api.github.com/users/kazurus/received_events","type":"User","site_admin":false},"body":"Change balance immediately when send a transaction\r\nRefactor send page to not use getters/setters to hex","created_at":"2018-06-18T10:02:19Z","updated_at":"2018-06-19T02:11:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c14731ceb6a0c56c68475d29e852b484502bc2b2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61/commits","review_comments_url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61/comments","review_comment_url":"https://api.github.com/repos/endpass/endpass-wallet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/endpass/endpass-wallet/issues/61/comments","statuses_url":"https://api.github.com/repos/endpass/endpass-wallet/statuses/0afebc50f22a401a8bfdad302c9cd72c8d277090","head":{"label":"kazurus:improvement","ref":"improvement","sha":"0afebc50f22a401a8bfdad302c9cd72c8d277090","user":{"login":"kazurus","id":32077191,"node_id":"MDQ6VXNlcjMyMDc3MTkx","avatar_url":"https://avatars1.githubusercontent.com/u/32077191?v=4","gravatar_id":"","url":"https://api.github.com/users/kazurus","html_url":"https://github.com/kazurus","followers_url":"https://api.github.com/users/kazurus/followers","following_url":"https://api.github.com/users/kazurus/following{/other_user}","gists_url":"https://api.github.com/users/kazurus/gists{/gist_id}","starred_url":"https://api.github.com/users/kazurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazurus/subscriptions","organizations_url":"https://api.github.com/users/kazurus/orgs","repos_url":"https://api.github.com/users/kazurus/repos","events_url":"https://api.github.com/users/kazurus/events{/privacy}","received_events_url":"https://api.github.com/users/kazurus/received_events","type":"User","site_admin":false},"repo":{"id":134812101,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ4MTIxMDE=","name":"endpass-wallet","full_name":"kazurus/endpass-wallet","owner":{"login":"kazurus","id":32077191,"node_id":"MDQ6VXNlcjMyMDc3MTkx","avatar_url":"https://avatars1.githubusercontent.com/u/32077191?v=4","gravatar_id":"","url":"https://api.github.com/users/kazurus","html_url":"https://github.com/kazurus","followers_url":"https://api.github.com/users/kazurus/followers","following_url":"https://api.github.com/users/kazurus/following{/other_user}","gists_url":"https://api.github.com/users/kazurus/gists{/gist_id}","starred_url":"https://api.github.com/users/kazurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazurus/subscriptions","organizations_url":"https://api.github.com/users/kazurus/orgs","repos_url":"https://api.github.com/users/kazurus/repos","events_url":"https://api.github.com/users/kazurus/events{/privacy}","received_events_url":"https://api.github.com/users/kazurus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kazurus/endpass-wallet","description":"Lightweight, easy to use Ethereum wallet","fork":true,"url":"https://api.github.com/repos/kazurus/endpass-wallet","forks_url":"https://api.github.com/repos/kazurus/endpass-wallet/forks","keys_url":"https://api.github.com/repos/kazurus/endpass-wallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kazurus/endpass-wallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kazurus/endpass-wallet/teams","hooks_url":"https://api.github.com/repos/kazurus/endpass-wallet/hooks","issue_events_url":"https://api.github.com/repos/kazurus/endpass-wallet/issues/events{/number}","events_url":"https://api.github.com/repos/kazurus/endpass-wallet/events","assignees_url":"https://api.github.com/repos/kazurus/endpass-wallet/assignees{/user}","branches_url":"https://api.github.com/repos/kazurus/endpass-wallet/branches{/branch}","tags_url":"https://api.github.com/repos/kazurus/endpass-wallet/tags","blobs_url":"https://api.github.com/repos/kazurus/endpass-wallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kazurus/endpass-wallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kazurus/endpass-wallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/kazurus/endpass-wallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kazurus/endpass-wallet/statuses/{sha}","languages_url":"https://api.github.com/repos/kazurus/endpass-wallet/languages","stargazers_url":"https://api.github.com/repos/kazurus/endpass-wallet/stargazers","contributors_url":"https://api.github.com/repos/kazurus/endpass-wallet/contributors","subscribers_url":"https://api.github.com/repos/kazurus/endpass-wallet/subscribers","subscription_url":"https://api.github.com/repos/kazurus/endpass-wallet/subscription","commits_url":"https://api.github.com/repos/kazurus/endpass-wallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/kazurus/endpass-wallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/kazurus/endpass-wallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/kazurus/endpass-wallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/kazurus/endpass-wallet/contents/{+path}","compare_url":"https://api.github.com/repos/kazurus/endpass-wallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kazurus/endpass-wallet/merges","archive_url":"https://api.github.com/repos/kazurus/endpass-wallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kazurus/endpass-wallet/downloads","issues_url":"https://api.github.com/repos/kazurus/endpass-wallet/issues{/number}","pulls_url":"https://api.github.com/repos/kazurus/endpass-wallet/pulls{/number}","milestones_url":"https://api.github.com/repos/kazurus/endpass-wallet/milestones{/number}","notifications_url":"https://api.github.com/repos/kazurus/endpass-wallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kazurus/endpass-wallet/labels{/name}","releases_url":"https://api.github.com/repos/kazurus/endpass-wallet/releases{/id}","deployments_url":"https://api.github.com/repos/kazurus/endpass-wallet/deployments","created_at":"2018-05-25T06:18:48Z","updated_at":"2018-06-15T17:29:09Z","pushed_at":"2018-06-18T13:22:12Z","git_url":"git://github.com/kazurus/endpass-wallet.git","ssh_url":"git@github.com:kazurus/endpass-wallet.git","clone_url":"https://github.com/kazurus/endpass-wallet.git","svn_url":"https://github.com/kazurus/endpass-wallet","homepage":null,"size":669,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"endpass:master","ref":"master","sha":"8ca22220b7a531e529a0e3cbab21d4a5b64d1a26","user":{"login":"endpass","id":35308615,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzA4NjE1","avatar_url":"https://avatars3.githubusercontent.com/u/35308615?v=4","gravatar_id":"","url":"https://api.github.com/users/endpass","html_url":"https://github.com/endpass","followers_url":"https://api.github.com/users/endpass/followers","following_url":"https://api.github.com/users/endpass/following{/other_user}","gists_url":"https://api.github.com/users/endpass/gists{/gist_id}","starred_url":"https://api.github.com/users/endpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endpass/subscriptions","organizations_url":"https://api.github.com/users/endpass/orgs","repos_url":"https://api.github.com/users/endpass/repos","events_url":"https://api.github.com/users/endpass/events{/privacy}","received_events_url":"https://api.github.com/users/endpass/received_events","type":"Organization","site_admin":false},"repo":{"id":128846976,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg4NDY5NzY=","name":"endpass-wallet","full_name":"endpass/endpass-wallet","owner":{"login":"endpass","id":35308615,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1MzA4NjE1","avatar_url":"https://avatars3.githubusercontent.com/u/35308615?v=4","gravatar_id":"","url":"https://api.github.com/users/endpass","html_url":"https://github.com/endpass","followers_url":"https://api.github.com/users/endpass/followers","following_url":"https://api.github.com/users/endpass/following{/other_user}","gists_url":"https://api.github.com/users/endpass/gists{/gist_id}","starred_url":"https://api.github.com/users/endpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endpass/subscriptions","organizations_url":"https://api.github.com/users/endpass/orgs","repos_url":"https://api.github.com/users/endpass/repos","events_url":"https://api.github.com/users/endpass/events{/privacy}","received_events_url":"https://api.github.com/users/endpass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/endpass/endpass-wallet","description":"Lightweight, easy to use Ethereum wallet","fork":false,"url":"https://api.github.com/repos/endpass/endpass-wallet","forks_url":"https://api.github.com/repos/endpass/endpass-wallet/forks","keys_url":"https://api.github.com/repos/endpass/endpass-wallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endpass/endpass-wallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endpass/endpass-wallet/teams","hooks_url":"https://api.github.com/repos/endpass/endpass-wallet/hooks","issue_events_url":"https://api.github.com/repos/endpass/endpass-wallet/issues/events{/number}","events_url":"https://api.github.com/repos/endpass/endpass-wallet/events","assignees_url":"https://api.github.com/repos/endpass/endpass-wallet/assignees{/user}","branches_url":"https://api.github.com/repos/endpass/endpass-wallet/branches{/branch}","tags_url":"https://api.github.com/repos/endpass/endpass-wallet/tags","blobs_url":"https://api.github.com/repos/endpass/endpass-wallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endpass/endpass-wallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endpass/endpass-wallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/endpass/endpass-wallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endpass/endpass-wallet/statuses/{sha}","languages_url":"https://api.github.com/repos/endpass/endpass-wallet/languages","stargazers_url":"https://api.github.com/repos/endpass/endpass-wallet/stargazers","contributors_url":"https://api.github.com/repos/endpass/endpass-wallet/contributors","subscribers_url":"https://api.github.com/repos/endpass/endpass-wallet/subscribers","subscription_url":"https://api.github.com/repos/endpass/endpass-wallet/subscription","commits_url":"https://api.github.com/repos/endpass/endpass-wallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/endpass/endpass-wallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/endpass/endpass-wallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/endpass/endpass-wallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/endpass/endpass-wallet/contents/{+path}","compare_url":"https://api.github.com/repos/endpass/endpass-wallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endpass/endpass-wallet/merges","archive_url":"https://api.github.com/repos/endpass/endpass-wallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endpass/endpass-wallet/downloads","issues_url":"https://api.github.com/repos/endpass/endpass-wallet/issues{/number}","pulls_url":"https://api.github.com/repos/endpass/endpass-wallet/pulls{/number}","milestones_url":"https://api.github.com/repos/endpass/endpass-wallet/milestones{/number}","notifications_url":"https://api.github.com/repos/endpass/endpass-wallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endpass/endpass-wallet/labels{/name}","releases_url":"https://api.github.com/repos/endpass/endpass-wallet/releases{/id}","deployments_url":"https://api.github.com/repos/endpass/endpass-wallet/deployments","created_at":"2018-04-09T23:50:15Z","updated_at":"2018-06-15T15:35:17Z","pushed_at":"2018-06-18T13:37:44Z","git_url":"git://github.com/endpass/endpass-wallet.git","ssh_url":"git@github.com:endpass/endpass-wallet.git","clone_url":"https://github.com/endpass/endpass-wallet.git","svn_url":"https://github.com/endpass/endpass-wallet","homepage":null,"size":661,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"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":3,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61"},"html":{"href":"https://github.com/endpass/endpass-wallet/pull/61"},"issue":{"href":"https://api.github.com/repos/endpass/endpass-wallet/issues/61"},"comments":{"href":"https://api.github.com/repos/endpass/endpass-wallet/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/endpass/endpass-wallet/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/endpass/endpass-wallet/statuses/0afebc50f22a401a8bfdad302c9cd72c8d277090"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"machinae"}}