EIP-1559 - Prevent isEIP1559Transaction throwing undefined error (#11607)

feature/default_network_editable
David Walsh 3 years ago committed by GitHub
parent d092e4bdbe
commit 71ade71c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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)
);
}

Loading…
Cancel
Save