1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Merge pull request #4721 from MetaMask/i4666-gasLimit

fixes #4666 getGasLimit and getGasPrice removed and replaced
This commit is contained in:
Dan J Miller 2018-07-04 17:22:14 -02:30 committed by GitHub
commit fd218142ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 12 deletions

View File

@ -31,8 +31,6 @@ const {
} = require('../../conversion-util')
const {
getGasPrice,
getGasLimit,
getGasIsLoading,
getForceGasMin,
conversionRateSelector,
@ -44,6 +42,11 @@ const {
getSendMaxModeState,
} = require('../../selectors')
const {
getGasPrice,
getGasLimit,
} = require('../send_/send.selectors')
function mapStateToProps (state) {
const selectedToken = getSelectedToken(state)
const currentAccount = getSendFrom(state) || getCurrentAccountWithSendEtherInfo(state)

View File

@ -17,8 +17,6 @@ const selectors = {
accountsWithSendEtherInfoSelector,
getCurrentAccountWithSendEtherInfo,
getGasIsLoading,
getGasPrice,
getGasLimit,
getForceGasMin,
getAddressBook,
getSendFrom,
@ -122,14 +120,6 @@ function getGasIsLoading (state) {
return state.appState.gasIsLoading
}
function getGasPrice (state) {
return state.metamask.send.gasPrice
}
function getGasLimit (state) {
return state.metamask.send.gasLimit
}
function getForceGasMin (state) {
return state.metamask.send.forceGasMin
}