mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Merge pull request #4721 from MetaMask/i4666-gasLimit
fixes #4666 getGasLimit and getGasPrice removed and replaced
This commit is contained in:
commit
fd218142ac
@ -31,8 +31,6 @@ const {
|
|||||||
} = require('../../conversion-util')
|
} = require('../../conversion-util')
|
||||||
|
|
||||||
const {
|
const {
|
||||||
getGasPrice,
|
|
||||||
getGasLimit,
|
|
||||||
getGasIsLoading,
|
getGasIsLoading,
|
||||||
getForceGasMin,
|
getForceGasMin,
|
||||||
conversionRateSelector,
|
conversionRateSelector,
|
||||||
@ -44,6 +42,11 @@ const {
|
|||||||
getSendMaxModeState,
|
getSendMaxModeState,
|
||||||
} = require('../../selectors')
|
} = require('../../selectors')
|
||||||
|
|
||||||
|
const {
|
||||||
|
getGasPrice,
|
||||||
|
getGasLimit,
|
||||||
|
} = require('../send_/send.selectors')
|
||||||
|
|
||||||
function mapStateToProps (state) {
|
function mapStateToProps (state) {
|
||||||
const selectedToken = getSelectedToken(state)
|
const selectedToken = getSelectedToken(state)
|
||||||
const currentAccount = getSendFrom(state) || getCurrentAccountWithSendEtherInfo(state)
|
const currentAccount = getSendFrom(state) || getCurrentAccountWithSendEtherInfo(state)
|
||||||
|
@ -17,8 +17,6 @@ const selectors = {
|
|||||||
accountsWithSendEtherInfoSelector,
|
accountsWithSendEtherInfoSelector,
|
||||||
getCurrentAccountWithSendEtherInfo,
|
getCurrentAccountWithSendEtherInfo,
|
||||||
getGasIsLoading,
|
getGasIsLoading,
|
||||||
getGasPrice,
|
|
||||||
getGasLimit,
|
|
||||||
getForceGasMin,
|
getForceGasMin,
|
||||||
getAddressBook,
|
getAddressBook,
|
||||||
getSendFrom,
|
getSendFrom,
|
||||||
@ -122,14 +120,6 @@ function getGasIsLoading (state) {
|
|||||||
return state.appState.gasIsLoading
|
return state.appState.gasIsLoading
|
||||||
}
|
}
|
||||||
|
|
||||||
function getGasPrice (state) {
|
|
||||||
return state.metamask.send.gasPrice
|
|
||||||
}
|
|
||||||
|
|
||||||
function getGasLimit (state) {
|
|
||||||
return state.metamask.send.gasLimit
|
|
||||||
}
|
|
||||||
|
|
||||||
function getForceGasMin (state) {
|
function getForceGasMin (state) {
|
||||||
return state.metamask.send.forceGasMin
|
return state.metamask.send.forceGasMin
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user