Skip to content

Commit

Permalink
remove extParams on virtuals.io
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Jan 6, 2025
1 parent 3bb8e9a commit edb6d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/SignTransactionSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 2 additions & 0 deletions src/utils/ethereumUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit edb6d5f

Please sign in to comment.