1
0
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:
David Walsh 2021-07-26 09:16:57 -05:00 committed by GitHub
parent d092e4bdbe
commit 71ade71c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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