diff options
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r-- | ui/app/selectors.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js index 951161510..bf3d3399e 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -10,6 +10,8 @@ const selectors = { transactionsSelector, accountsWithSendEtherInfoSelector, getCurrentAccountWithSendEtherInfo, + getGasPrice, + getGasLimit, } module.exports = selectors @@ -46,7 +48,7 @@ function getSelectedTokenExchangeRate (state) { const tokenExchangeRates = state.metamask.tokenExchangeRates const selectedToken = getSelectedToken(state) || {} const { symbol = '' } = selectedToken - + const pair = `${symbol.toLowerCase()}_eth` const { rate: tokenExchangeRate = 0 } = tokenExchangeRates[pair] || {} @@ -92,3 +94,11 @@ function transactionsSelector (state) { : txsToRender .sort((a, b) => b.time - a.time) } + +function getGasPrice (state) { + return state.metamask.send.gasPrice +} + +function getGasLimit (state) { + return state.metamask.send.gasLimit +} |