From 5b0b2900ed4d0d97dc36c6406d294c590504b9f6 Mon Sep 17 00:00:00 2001 From: Matthew Wall <matthew.wallt@gmail.com> Date: Mon, 6 Jan 2025 19:55:59 -0500 Subject: [PATCH] remove extParams on virtuals.io (#6383) --- src/screens/SignTransactionSheet.tsx | 2 +- src/utils/ethereumUtils.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens/SignTransactionSheet.tsx b/src/screens/SignTransactionSheet.tsx index 24b90fe630e..3edec67474a 100644 --- a/src/screens/SignTransactionSheet.tsx +++ b/src/screens/SignTransactionSheet.tsx @@ -304,7 +304,7 @@ export const SignTransactionSheet = () => { logger.error(new RainbowError('[SignTransactionSheet]: error estimating gas'), { error }); } // clean gas prices / fees sent from the dapp - const cleanTxPayload = omitFlatten(txPayload, ['gasPrice', 'maxFeePerGas', 'maxPriorityFeePerGas']); + const cleanTxPayload = omitFlatten(txPayload, ['gasPrice', 'maxFeePerGas', 'maxPriorityFeePerGas', 'extParams']); const gasParams = parseGasParamsForTransaction(selectedGasFee); const calculatedGasLimit = gas || gasLimitFromPayload || gasLimit; diff --git a/src/utils/ethereumUtils.ts b/src/utils/ethereumUtils.ts index 74dbcb14969..fbe28fd0a24 100644 --- a/src/utils/ethereumUtils.ts +++ b/src/utils/ethereumUtils.ts @@ -457,6 +457,8 @@ const calculateL1FeeOptimism = async ( delete newTx?.from; // @ts-expect-error gas is not in type RainbowTransaction delete newTx?.gas; + // @ts-expect-error extParams is not in type RainbowTransaction + delete newTx?.extParams; // contract call will fail if these are passed delete newTx.maxPriorityFeePerGas;