aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-07-05 03:52:14 +0800
committerGitHub <noreply@github.com>2018-07-05 03:52:14 +0800
commitfd218142acb6dab0b2f921b9729f17ff90cffc2d (patch)
tree96f836c54997c0ebbce9b050ff1e526678899584 /ui
parent68e1f22193dbba6c9ae3d6e4d22ee68244c05418 (diff)
parent6bc7647c05930b6683308ffde35afbde29cbe258 (diff)
downloadtangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar.gz
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar.bz2
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar.lz
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar.xz
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.tar.zst
tangerine-wallet-browser-fd218142acb6dab0b2f921b9729f17ff90cffc2d.zip
Merge pull request #4721 from MetaMask/i4666-gasLimit
fixes #4666 getGasLimit and getGasPrice removed and replaced
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/customize-gas-modal/index.js7
-rw-r--r--ui/app/selectors.js10
2 files changed, 5 insertions, 12 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js
index cd8f76ed5..cefa428b9 100644
--- a/ui/app/components/customize-gas-modal/index.js
+++ b/ui/app/components/customize-gas-modal/index.js
@@ -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)
diff --git a/ui/app/selectors.js b/ui/app/selectors.js
index cf0affe9c..3e2253550 100644
--- a/ui/app/selectors.js
+++ b/ui/app/selectors.js
@@ -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
}