From c59f75aeb534b1afe4020f509d9ce6304af1ff07 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 6 Jul 2016 23:35:59 -0700 Subject: [PATCH] Correct data length calculation --- ui/app/components/pending-tx-details.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})