aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 7a18b1c00..5e92583e0 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -731,16 +731,21 @@ function updateGasData ({
selectedAddress,
selectedToken,
to,
+ value,
}) {
+ const estimatedGasPrice = estimateGasPriceFromRecentBlocks(recentBlocks)
return (dispatch) => {
return Promise.all([
- Promise.resolve(estimateGasPriceFromRecentBlocks(recentBlocks)),
+ Promise.resolve(estimatedGasPrice),
estimateGas({
+ estimateGasMethod: background.estimateGas,
blockGasLimit,
data,
selectedAddress,
selectedToken,
to,
+ value,
+ gasPrice: estimatedGasPrice,
}),
])
.then(([gasPrice, gas]) => {