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:
parent
66c049bb35
commit
5444474d82
@ -2040,6 +2040,10 @@ export default class TransactionController extends EventEmitter {
|
|||||||
gasParams.estimate_used = estimateUsed;
|
gasParams.estimate_used = estimateUsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (extraParams?.gas_used) {
|
||||||
|
gasParams.gas_used = extraParams.gas_used;
|
||||||
|
}
|
||||||
|
|
||||||
const gasParamsInGwei = this._getGasValuesInGWEI(gasParams);
|
const gasParamsInGwei = this._getGasValuesInGWEI(gasParams);
|
||||||
|
|
||||||
let eip1559Version = '0';
|
let eip1559Version = '0';
|
||||||
@ -2070,8 +2074,8 @@ export default class TransactionController extends EventEmitter {
|
|||||||
: TRANSACTION_ENVELOPE_TYPE_NAMES.LEGACY,
|
: TRANSACTION_ENVELOPE_TYPE_NAMES.LEGACY,
|
||||||
first_seen: time,
|
first_seen: time,
|
||||||
gas_limit: gasLimit,
|
gas_limit: gasLimit,
|
||||||
...gasParamsInGwei,
|
|
||||||
...extraParams,
|
...extraParams,
|
||||||
|
...gasParamsInGwei,
|
||||||
};
|
};
|
||||||
|
|
||||||
return { properties, sensitiveProperties };
|
return { properties, sensitiveProperties };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user