aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJared Pereira <jared@otlw.co>2017-03-08 11:42:16 +0800
committerJared Pereira <jared@otlw.co>2017-03-08 11:42:16 +0800
commit4916331c530896bbcef13a71a8f6dc0164b43c01 (patch)
treef6c294ccf52455a83a80c42b57b6e390db0d6e33 /app
parentde44cd9ba46e562471d64e6cfc56cf8518f45113 (diff)
downloadtangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar.gz
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar.bz2
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar.lz
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar.xz
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.tar.zst
tangerine-wallet-browser-4916331c530896bbcef13a71a8f6dc0164b43c01.zip
change BN.mul to BN.muln
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 15cbb5b68..f5051eb8f 100644
--- a/app/scripts/lib/tx-utils.js
+++ b/app/scripts/lib/tx-utils.js
@@ -71,7 +71,7 @@ module.exports = class txProviderUtils {
addGasBuffer (gas, blockGasLimitHex) {
const blockGasLimitBn = new BN(ethUtil.stripHexPrefix(blockGasLimitHex), 16)
const bnGas = new BN(ethUtil.stripHexPrefix(gas), 16)
- const bufferedGas = bnGas.mul(1.5)
+ const bufferedGas = bnGas.muln(1.5)
if (bnGas.gt(blockGasLimitBn)) return gas
if (bufferedGas.lt(blockGasLimitBn)) return ethUtil.addHexPrefix(bufferedGas.toString(16))