1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

add gas_used to gasParams for conversion (#14627)

This commit is contained in:
Brad Decker 2022-05-18 16:54:38 -05:00 committed by GitHub
parent 66c049bb35
commit 5444474d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 };