1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Get and set average gas price button estimation as default

This commit is contained in:
Thomas 2019-08-26 10:30:39 -07:00
parent 4e29fb97d6
commit 302c815309

View File

@ -13,7 +13,7 @@ const {
calcGasTotal, calcGasTotal,
} = require('./send.utils') } = require('./send.utils')
import { import {
getFastPriceEstimateInHexWEI, getAveragePriceEstimateInHexWEI,
} from '../../selectors/custom-gas' } from '../../selectors/custom-gas'
const selectors = { const selectors = {
@ -120,7 +120,7 @@ function getGasLimit (state) {
} }
function getGasPrice (state) { function getGasPrice (state) {
return state.metamask.send.gasPrice || getFastPriceEstimateInHexWEI(state) return state.metamask.send.gasPrice || getAveragePriceEstimateInHexWEI(state)
} }
function getGasPriceFromRecentBlocks (state) { function getGasPriceFromRecentBlocks (state) {