diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-07 14:35:59 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-07 14:38:07 +0800 |
commit | c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7 (patch) | |
tree | 0b7c1ebaa513a26d0c1329ff98db809ec52d057d /ui/app | |
parent | 5faa64817c2d935029bfc302eff6c7f0df8a8989 (diff) | |
download | tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar.gz tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar.bz2 tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar.lz tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar.xz tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.tar.zst tangerine-wallet-browser-c2655bef5a2852eb03f3c2b5dcd134c57e3b34f7.zip |
Correct data length calculation
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/pending-tx-details.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js index c826d9da3..8ecca856a 100644 --- a/ui/app/components/pending-tx-details.js +++ b/ui/app/components/pending-tx-details.js @@ -34,7 +34,7 @@ PTXP.render = function () { var gasCost = ethUtil.stripHexPrefix(txParams.gas || baseFeeHex) var txValue = ethUtil.stripHexPrefix(txParams.value || '0x0') var maxCost = ((new BN(txValue, 16)).add(new BN(gasCost, 16))).toString(16) - var dataLength = txParams.data ? txParams.data.length - 2 : 0 + var dataLength = txParams.data ? (txParams.data.length - 2) / 2 : 0 console.dir(identity) console.dir({props}) |