aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-22 05:09:44 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-22 05:09:44 +0800
commit6209224a6c1129817ebb4cd4a433cf456631c33a (patch)
tree41e3f227f2b43f552ae858a5191d05334ca7da09
parentc7fd9f424087b20bfc356d360d2a2246ca0e5ad7 (diff)
downloadtangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar.gz
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar.bz2
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar.lz
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar.xz
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.tar.zst
tangerine-wallet-browser-6209224a6c1129817ebb4cd4a433cf456631c33a.zip
Add transaction number (nonce) to tx list
-rw-r--r--CHANGELOG.md2
-rw-r--r--ui/app/components/transaction-list-item.js21
2 files changed, 23 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 371b348ca..7f894f935 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## Current Master
+- Add Transaction Number (nonce) to transaction list.
+
## 3.6.5 2017-5-17
- Fix bug where edited gas parameters would not take effect.
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index c2a585003..18ee10578 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -8,6 +8,7 @@ const explorerLink = require('../../lib/explorer-link')
const CopyButton = require('./copyButton')
const vreme = new (require('vreme'))
const Tooltip = require('./tooltip')
+const BN = require('ethereumjs-util').BN
const TransactionIcon = require('./transaction-list-item-icon')
const ShiftListItem = require('./shift-list-item')
@@ -39,6 +40,8 @@ TransactionListItem.prototype.render = function () {
txParams = transaction.msgParams
}
+ const nonce = (new BN(txParams.nonce.substr(2))).toString(10)
+
const isClickable = ('hash' in transaction && isLinkable) || isPending
return (
h(`.transaction-list-item.flex-row.flex-space-between${isClickable ? '.pointer' : ''}`, {
@@ -69,6 +72,24 @@ TransactionListItem.prototype.render = function () {
]),
]),
+ h(Tooltip, {
+ title: 'Transaction Number',
+ position: 'bottom',
+ },
+ [
+ h('span', {
+ style: {
+ display: 'flex',
+ cursor: 'normal',
+ flexDirection: 'column',
+ alignItems: 'center',
+ justifyContent: 'center',
+ padding: '10px',
+ },
+ }, nonce),
+ ]),
+
+
h('.flex-column', {style: {width: '200px', overflow: 'hidden'}}, [
domainField(txParams),
h('div', date),