From aeae70ffd4b5d363ffc8fdf5169608050bc4f96d Mon Sep 17 00:00:00 2001 From: ryanml Date: Wed, 28 Jul 2021 11:13:23 -0700 Subject: [PATCH] Revert "Use current block gas limit as the limit passed eth_estimateGas (#11658)" (#11660) This reverts commit aee79fd44de3fe2410babca6057cfc4a96bc5549. --- ui/ducks/send/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ducks/send/send.js b/ui/ducks/send/send.js index 3039af5c9..30ddb2d80 100644 --- a/ui/ducks/send/send.js +++ b/ui/ducks/send/send.js @@ -350,7 +350,7 @@ export const computeEstimatedGasLimit = createAsyncThunk( if (send.stage !== SEND_STAGES.EDIT) { const gasLimit = await estimateGasLimitForSend({ gasPrice: send.gas.gasPrice, - blockGasLimit: metamask.currentBlockGasLimit, + blockGasLimit: metamask.blockGasLimit, selectedAddress: metamask.selectedAddress, sendToken: send.asset.details, to: send.recipient.address?.toLowerCase(), @@ -425,7 +425,7 @@ export const initializeSendState = createAsyncThunk( // required gas. If this value isn't nullish, set it as the new gasLimit const estimatedGasLimit = await estimateGasLimitForSend({ gasPrice: getGasPriceInHexWei(basicEstimates.average), - blockGasLimit: metamask.currentBlockGasLimit, + blockGasLimit: metamask.blockGasLimit, selectedAddress: fromAddress, sendToken: asset.details, to: recipient.address.toLowerCase(),