mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
EIP-1559 - Prevent isEIP1559Transaction throwing undefined error (#11607)
This commit is contained in:
parent
d092e4bdbe
commit
71ade71c2b
@ -16,8 +16,8 @@ export function transactionMatchesNetwork(transaction, chainId, networkId) {
|
||||
*/
|
||||
export function isEIP1559Transaction(transaction) {
|
||||
return (
|
||||
isHexString(transaction.txParams.maxFeePerGas) &&
|
||||
isHexString(transaction.txParams.maxPriorityFeePerGas)
|
||||
isHexString(transaction?.txParams?.maxFeePerGas) &&
|
||||
isHexString(transaction?.txParams?.maxPriorityFeePerGas)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user