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:35:59 +0800 |
commit | c59f75aeb534b1afe4020f509d9ce6304af1ff07 (patch) | |
tree | e595a7dfd3cdbf5388ba630771873c16993aa9f3 | |
parent | 5faa64817c2d935029bfc302eff6c7f0df8a8989 (diff) | |
download | tangerine-wallet-browser-c59f75aeb534b1afe4020f509d9ce6304af1ff07.tar.gz tangerine-wallet-browser-c59f75aeb534b1afe4020f509d9ce6304af1ff07.tar.zst tangerine-wallet-browser-c59f75aeb534b1afe4020f509d9ce6304af1ff07.zip |
Correct data length calculation
-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..91ce830cb 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}) |