Merge pull request #7068 from MetaMask/Average-Gas-Button

Get and set average gas price button estimation as default
feature/default_network_editable
Thomas Huang 5 years ago committed by GitHub
commit b8e69369d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/app/pages/send/send.selectors.js

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

Loading…
Cancel
Save