From e125e743a389605d28da982018f4bed91d419f3a Mon Sep 17 00:00:00 2001 From: MananTank Date: Wed, 16 Jul 2025 17:35:01 +0000 Subject: [PATCH] Dashboard: Temporarily remove gas sponsorship option in token creation (#7631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on temporarily disabling the gasless feature in two components: `launch-token.tsx` and `launch-nft.tsx`. The condition for enabling gasless functionality has been commented out and replaced with a static `false` value. ### Detailed summary - In `launch-token.tsx`: - `canEnableGasless` is set to `false` with a comment about enabling it later. - `showGaslessSection` is set to `false`. - In `launch-nft.tsx`: - `canEnableGasless` is set to `false` with a comment about enabling it later. - `showGaslessSection` is set to `false`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **New Features** * The gasless transaction feature and related UI have been temporarily disabled for both NFT and token launch flows. * **Chores** * Updated internal logic to prevent access to the gasless sponsorship section until further notice. --- .../(sidebar)/tokens/create/nft/launch/launch-nft.tsx | 6 +++--- .../(sidebar)/tokens/create/token/launch/launch-token.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx index a8876f83373..cf2ef98a36e 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/nft/launch/launch-nft.tsx @@ -155,10 +155,10 @@ export function LaunchNFT(props: { return shouldDeployERC721 ? "erc721" : "erc1155"; }, [formValues.nfts]); - const canEnableGasless = - props.teamPlan !== "free" && activeWallet?.id === "inApp"; + // TODO: enable later when bundler changes are done + const canEnableGasless = false; // props.teamPlan !== "free" && activeWallet?.id === "inApp"; const [isGasless, setIsGasless] = useState(canEnableGasless); - const showGaslessSection = activeWallet?.id === "inApp"; + const showGaslessSection = false; // activeWallet?.id === "inApp"; const contractLink = contractAddressRef.current ? `/team/${props.teamSlug}/${props.projectSlug}/contract/${formValues.collectionInfo.chain}/${contractAddressRef.current}` diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/launch/launch-token.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/launch/launch-token.tsx index 535af3782ec..c3c552351ed 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/launch/launch-token.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/tokens/create/token/launch/launch-token.tsx @@ -64,10 +64,10 @@ export function LaunchTokenStatus(props: { const activeWallet = useActiveWallet(); const walletRequiresApproval = activeWallet?.id !== "inApp"; - const canEnableGasless = - props.teamPlan !== "free" && activeWallet?.id === "inApp"; + // TODO: enable later when bundler changes are done + const canEnableGasless = false; //props.teamPlan !== "free" && activeWallet?.id === "inApp"; const [isGasless, setIsGasless] = useState(canEnableGasless); - const showGaslessSection = activeWallet?.id === "inApp"; + const showGaslessSection = false; // activeWallet?.id === "inApp"; const { idToChain } = useAllChainsData(); const chainMetadata = idToChain.get(Number(formValues.chain));