@metamask-previews/transaction-controller 52.0.0-preview-e3c959f → 52.0.0-preview-e7013a54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ### Fixed
11
-
12
- - Fix gas estimation for type 4 transactions ([#5519](https://github.com/MetaMask/core/pull/5519))
13
-
14
10
  ## [52.0.0]
15
11
 
16
12
  ### Changed
@@ -549,12 +549,7 @@ class TransactionController extends base_controller_1.BaseController {
549
549
  const ethQuery = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getEthQuery).call(this, {
550
550
  networkClientId,
551
551
  });
552
- const { estimatedGas, simulationFails } = await (0, gas_1.estimateGas)({
553
- chainId: __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getChainId).call(this, networkClientId),
554
- ethQuery,
555
- isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
556
- txParams: transaction,
557
- });
552
+ const { estimatedGas, simulationFails } = await (0, gas_1.estimateGas)(transaction, ethQuery);
558
553
  return { gas: estimatedGas, simulationFails };
559
554
  }
560
555
  /**
@@ -569,12 +564,7 @@ class TransactionController extends base_controller_1.BaseController {
569
564
  const ethQuery = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getEthQuery).call(this, {
570
565
  networkClientId,
571
566
  });
572
- const { blockGasLimit, estimatedGas, simulationFails } = await (0, gas_1.estimateGas)({
573
- chainId: __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getChainId).call(this, networkClientId),
574
- ethQuery,
575
- isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
576
- txParams: transaction,
577
- });
567
+ const { blockGasLimit, estimatedGas, simulationFails } = await (0, gas_1.estimateGas)(transaction, ethQuery);
578
568
  const gas = (0, gas_1.addGasBuffer)(estimatedGas, blockGasLimit, multiplier);
579
569
  return {
580
570
  gas,
@@ -2097,7 +2087,6 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
2097
2087
  chainId,
2098
2088
  ethQuery,
2099
2089
  isCustomNetwork,
2100
- isSimulationEnabled: __classPrivateFieldGet(this, _TransactionController_isSimulationEnabled, "f").call(this),
2101
2090
  txMeta: transactionMeta,
2102
2091
  });
2103
2092
  }, _TransactionController_deleteTransaction = function _TransactionController_deleteTransaction(transactionId) {