mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure createPendingTxMiddleware returns gasPrice for EIP-1559 transactions (#11685)
This commit is contained in:
parent
fa703173a0
commit
b2cb38ab2d
@ -36,6 +36,7 @@ export function formatTxMetaForRpcResult(txMeta) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (maxFeePerGas && maxPriorityFeePerGas) {
|
if (maxFeePerGas && maxPriorityFeePerGas) {
|
||||||
|
formattedTxMeta.gasPrice = maxFeePerGas;
|
||||||
formattedTxMeta.maxFeePerGas = maxFeePerGas;
|
formattedTxMeta.maxFeePerGas = maxFeePerGas;
|
||||||
formattedTxMeta.maxPriorityFeePerGas = maxPriorityFeePerGas;
|
formattedTxMeta.maxPriorityFeePerGas = maxPriorityFeePerGas;
|
||||||
formattedTxMeta.type = TRANSACTION_ENVELOPE_TYPES.FEE_MARKET;
|
formattedTxMeta.type = TRANSACTION_ENVELOPE_TYPES.FEE_MARKET;
|
||||||
|
@ -33,6 +33,7 @@ describe('network utils', function () {
|
|||||||
blockNumber: null,
|
blockNumber: null,
|
||||||
from: '0xc684832530fcbddae4b4230a47e991ddcec2831d',
|
from: '0xc684832530fcbddae4b4230a47e991ddcec2831d',
|
||||||
gas: '0x7b0d',
|
gas: '0x7b0d',
|
||||||
|
gasPrice: '0x77359400',
|
||||||
hash:
|
hash:
|
||||||
'0x4bcb6cd6b182209585f8ad140260ddb35c81a575dd40f508d9767e652a9f60e7',
|
'0x4bcb6cd6b182209585f8ad140260ddb35c81a575dd40f508d9767e652a9f60e7',
|
||||||
input: '0x',
|
input: '0x',
|
||||||
|
Loading…
Reference in New Issue
Block a user