aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-03-08 14:51:39 +0800
committerkumavis <aaron@kumavis.me>2017-03-08 14:51:39 +0800
commit92b8443824bffca219b146028d5685e6aa1ffabf (patch)
treeb553981990eefc8eb9eaf5028b0e022d324f9c3e /app
parentc063fab9932c6b90414fd7db7849012d6594afb7 (diff)
downloadtangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar.gz
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar.bz2
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar.lz
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar.xz
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.tar.zst
tangerine-wallet-browser-92b8443824bffca219b146028d5685e6aa1ffabf.zip
tx-utils - add encoding utils
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/tx-utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/tx-utils.js b/app/scripts/lib/tx-utils.js
index f1171851c..c6814c05f 100644
--- a/app/scripts/lib/tx-utils.js
+++ b/app/scripts/lib/tx-utils.js
@@ -91,7 +91,7 @@ module.exports = class txProviderUtils {
// builds ethTx from txParams object
buildEthTxFromParams (txParams) {
// apply gas multiplyer
- let gasPrice = new BN(ethUtil.stripHexPrefix(txParams.gasPrice), 16)
+ let gasPrice = hexToBn(txParams.gasPrice)
// multiply and divide by 100 so as to add percision to integer mul
txParams.gasPrice = ethUtil.intToHex(gasPrice.toNumber())
// normalize values