From 5444474d8297c86dfb9c92d0e9e80d6dc84aa87c Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Wed, 18 May 2022 16:54:38 -0500 Subject: [PATCH] add gas_used to gasParams for conversion (#14627) --- app/scripts/controllers/transactions/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scripts/controllers/transactions/index.js b/app/scripts/controllers/transactions/index.js index 4e06c2951..f9b9f4d27 100644 --- a/app/scripts/controllers/transactions/index.js +++ b/app/scripts/controllers/transactions/index.js @@ -2040,6 +2040,10 @@ export default class TransactionController extends EventEmitter { gasParams.estimate_used = estimateUsed; } + if (extraParams?.gas_used) { + gasParams.gas_used = extraParams.gas_used; + } + const gasParamsInGwei = this._getGasValuesInGWEI(gasParams); let eip1559Version = '0'; @@ -2070,8 +2074,8 @@ export default class TransactionController extends EventEmitter { : TRANSACTION_ENVELOPE_TYPE_NAMES.LEGACY, first_seen: time, gas_limit: gasLimit, - ...gasParamsInGwei, ...extraParams, + ...gasParamsInGwei, }; return { properties, sensitiveProperties };