Skip to content

Commit

Permalink
Defaults to the args list in increaseLastGasPrice and getHexGasTotal
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm committed Mar 27, 2019
1 parent 0346089 commit 31d8b27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/app/helpers/utils/confirm-tx.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {

import { unconfirmedTransactionsCountSelector } from '../../selectors/confirm-transaction'

export function increaseLastGasPrice (lastGasPrice) {
return ethUtil.addHexPrefix(multiplyCurrencies(lastGasPrice || '0x0', 1.1, {
export function increaseLastGasPrice (lastGasPrice = '0x0') {
return ethUtil.addHexPrefix(multiplyCurrencies(lastGasPrice, 1.1, {
multiplicandBase: 16,
multiplierBase: 10,
toNumericBase: 'hex',
Expand All @@ -27,8 +27,8 @@ export function hexGreaterThan (a, b) {
)
}

export function getHexGasTotal ({ gasLimit, gasPrice }) {
return ethUtil.addHexPrefix(multiplyCurrencies(gasLimit || '0x0', gasPrice || '0x0', {
export function getHexGasTotal ({ gasLimit = '0x0', gasPrice = '0x0' }) {
return ethUtil.addHexPrefix(multiplyCurrencies(gasLimit, gasPrice, {
toNumericBase: 'hex',
multiplicandBase: 16,
multiplierBase: 16,
Expand Down

0 comments on commit 31d8b27

Please sign in to comment.