aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-23 06:43:20 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-23 06:43:20 +0800
commit058b73221393467549cca04937267635e471aae1 (patch)
tree85ba257b6caa6bbdb02b84c3417bed4a8f120a22 /ui
parent954d8bd111ea70b823267b89edb415e2d28caec3 (diff)
downloadtangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar.gz
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar.bz2
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar.lz
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar.xz
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.tar.zst
tangerine-wallet-browser-058b73221393467549cca04937267635e471aae1.zip
Tolerate nonces of any format
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/transaction-list-item.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index 4f0e6132a..dbda66a31 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -8,7 +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 numberToBN = require('number-to-bn')
const TransactionIcon = require('./transaction-list-item-icon')
const ShiftListItem = require('./shift-list-item')
@@ -40,7 +40,7 @@ TransactionListItem.prototype.render = function () {
txParams = transaction.msgParams
}
- const nonce = txParams.nonce ? (new BN(txParams.nonce.substr(2))).toString(10) : ''
+ const nonce = txParams.nonce ? numberToBN(txParams.nonce).toString(10) : ''
const isClickable = ('hash' in transaction && isLinkable) || isPending
return (