diff options
author | Dan J Miller <danjm.com@gmail.com> | 2019-03-29 23:17:58 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-03-29 23:17:58 +0800 |
commit | 1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769 (patch) | |
tree | 23da5f60c6eadb665792a91591814a1ad9a31ba4 | |
parent | 19c2b298f13c088553e3498ef4425fb66df04098 (diff) | |
download | tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar.gz tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar.bz2 tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar.lz tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar.xz tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.tar.zst tangerine-wallet-browser-1d14646a4cb5d35753943b9c8cc8dfe2fb3e7769.zip |
Revert to providing inline defaults in getHexGasTotal and increaseLastGasPrice (#6361)
-rw-r--r-- | ui/app/helpers/utils/confirm-tx.util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/helpers/utils/confirm-tx.util.js b/ui/app/helpers/utils/confirm-tx.util.js index 224560f5a..853427b31 100644 --- a/ui/app/helpers/utils/confirm-tx.util.js +++ b/ui/app/helpers/utils/confirm-tx.util.js @@ -12,8 +12,8 @@ import { import { unconfirmedTransactionsCountSelector } from '../../selectors/confirm-transaction' -export function increaseLastGasPrice (lastGasPrice = '0x0') { - return ethUtil.addHexPrefix(multiplyCurrencies(lastGasPrice, 1.1, { +export function increaseLastGasPrice (lastGasPrice) { + return ethUtil.addHexPrefix(multiplyCurrencies(lastGasPrice || '0x0', 1.1, { multiplicandBase: 16, multiplierBase: 10, toNumericBase: 'hex', @@ -27,8 +27,8 @@ export function hexGreaterThan (a, b) { ) } -export function getHexGasTotal ({ gasLimit = '0x0', gasPrice = '0x0' }) { - return ethUtil.addHexPrefix(multiplyCurrencies(gasLimit, gasPrice, { +export function getHexGasTotal ({ gasLimit, gasPrice }) { + return ethUtil.addHexPrefix(multiplyCurrencies(gasLimit || '0x0', gasPrice || '0x0', { toNumericBase: 'hex', multiplicandBase: 16, multiplierBase: 16, |