From 71ade71c2b8d03cf4fe79b5e5c1f74cd2cff3a43 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Mon, 26 Jul 2021 09:16:57 -0500 Subject: [PATCH] EIP-1559 - Prevent isEIP1559Transaction throwing undefined error (#11607) --- shared/modules/transaction.utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/modules/transaction.utils.js b/shared/modules/transaction.utils.js index 092f8e465..8e0e167af 100644 --- a/shared/modules/transaction.utils.js +++ b/shared/modules/transaction.utils.js @@ -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) ); }