From f6760fe77f77d3175de1ca037617a82c2a624388 Mon Sep 17 00:00:00 2001 From: jinchung Date: Fri, 27 Oct 2023 14:18:49 -0400 Subject: [PATCH] Revert "mints: l1fee + value fix (#5162)" This reverts commit 8224e4cf8d83078f55d62c4b511508cadff1c134. --- src/screens/mints/MintSheet.tsx | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/screens/mints/MintSheet.tsx b/src/screens/mints/MintSheet.tsx index ef6da9d4940..3c2fbc51566 100644 --- a/src/screens/mints/MintSheet.tsx +++ b/src/screens/mints/MintSheet.tsx @@ -338,35 +338,18 @@ const MintSheet = () => { return; } step.items?.forEach(async item => { - const value = multiply( - mintCollection.publicMintInfo?.price?.amount?.raw || '0', - quantity - ); // could add safety here if unable to calc gas limit const tx = { to: item.data?.to, from: item.data?.from, data: item.data?.data, - value, + value: multiply(price.amount || '0', quantity), }; const gas = await estimateGas(tx, provider); - - let l1GasFeeOptimism = null; - // add l1Fee for OP Chains - if (getNetworkObj(currentNetwork).gas.OptimismTxFee) { - l1GasFeeOptimism = await ethereumUtils.calculateL1FeeOptimism( - tx, - provider - ); - } if (gas) { setGasError(false); - if (l1GasFeeOptimism) { - updateTxFee(gas, null, l1GasFeeOptimism); - } else { - updateTxFee(gas, null); - } + updateTxFee(gas, null); } }); });