@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 +0 -4
- package/dist/TransactionController.cjs +2 -13
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +2 -13
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/utils/feature-flags.cjs +2 -2
- package/dist/utils/feature-flags.cjs.map +1 -1
- package/dist/utils/feature-flags.d.cts +2 -2
- package/dist/utils/feature-flags.d.mts +2 -2
- package/dist/utils/feature-flags.mjs +2 -2
- package/dist/utils/feature-flags.mjs.map +1 -1
- package/dist/utils/gas.cjs +8 -108
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts +5 -16
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts +5 -16
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +8 -108
- package/dist/utils/gas.mjs.map +1 -1
- package/dist/utils/simulation-api.cjs.map +1 -1
- package/dist/utils/simulation-api.d.cts +5 -9
- package/dist/utils/simulation-api.d.cts.map +1 -1
- package/dist/utils/simulation-api.d.mts +5 -9
- package/dist/utils/simulation-api.d.mts.map +1 -1
- package/dist/utils/simulation-api.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
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) {
|