aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-09-29 08:39:53 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-29 08:39:53 +0800
commit67ee5b21e6f64ac22e65f2712ae13dd8c09ed113 (patch)
treee422bcdec00cc0e921f37cad39223b6ef2e1828b /ui/app/actions.js
parent4f106854ba6bbfd22b49598f9ef019aa620f5b4f (diff)
downloadtangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.gz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.bz2
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.lz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.xz
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.tar.zst
tangerine-wallet-browser-67ee5b21e6f64ac22e65f2712ae13dd8c09ed113.zip
Query for gas estimates
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 0b860ee63..ff3240abf 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -453,10 +453,10 @@ function signTx (txData) {
}
}
-function estimateGas () {
+function estimateGas (params = {}) {
return (dispatch) => {
return new Promise((resolve, reject) => {
- global.ethQuery.estimateGas({}, (err, data) => {
+ global.ethQuery.estimateGas(params, (err, data) => {
if (err) {
dispatch(actions.displayWarning(err.message))
return reject(err)