aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-20 08:38:25 +0800
committerDan <danjm.com@gmail.com>2018-05-31 07:24:31 +0800
commit17909465f283179aad39166b1191dbaba3770bf6 (patch)
tree90d540a75ef976a8e212d39d545a6b774280c9f4 /ui/app/actions.js
parent6f633a97e15e8277a065f987880cd666cc2fbf89 (diff)
downloadtangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.gz
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.bz2
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.lz
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.xz
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.zst
tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.zip
getParamsForGasEstimate extracts symbol from token instead of just accepting symbol.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index d83ecbe24..bec9a8cfb 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -760,8 +760,7 @@ function setGasTotal (gasTotal) {
function getGasEstimate ({ selectedAddress, selectedToken, data }) {
return (dispatch) => {
- const { symbol } = selectedToken || {}
- const estimateGasParams = getParamsForGasEstimate(selectedAddress, symbol, data)
+ const estimateGasParams = getParamsForGasEstimate(selectedAddress, selectedToken, data)
return Promise.all([
dispatch(actions.getGasPrice()),
dispatch(actions.estimateGas(estimateGasParams)),