From dd8530ae9cecbd5b69a706f0ea60553d3d16d730 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Fri, 16 May 2025 22:11:49 +1200 Subject: [PATCH 1/2] [Engine] Add chain ID 13337 to test transaction options --- .../engine/cloud/analytics/send-test-tx.client.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx index 144d2bd9ba1..e0bca456052 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx @@ -252,6 +252,7 @@ export function SendTestTransaction(props: { 1740, 4202, 10200, + 13337, ]} client={thirdwebClient} chainId={form.watch("chainId")} From 51d6c6777f7424cb09505380c60f475b68d655e2 Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Fri, 16 May 2025 22:30:23 +1200 Subject: [PATCH 2/2] [Dashboard] Use testnet chains from useAllChainsData instead of hardcoded list (#7067) --- .../cloud/analytics/send-test-tx.client.tsx | 42 ++++--------------- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx index e0bca456052..16d04b3bcb9 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/engine/cloud/analytics/send-test-tx.client.tsx @@ -19,15 +19,10 @@ import { Loader2Icon, LockIcon } from "lucide-react"; import { useState } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; -import { - arbitrumSepolia, - baseSepolia, - optimismSepolia, - sepolia, -} from "thirdweb/chains"; import * as z from "zod"; import { CopyTextButton } from "../../../../../../../../@/components/ui/CopyTextButton"; import { useTrack } from "../../../../../../../../hooks/analytics/useTrack"; +import { useAllChainsData } from "../../../../../../../../hooks/chains/allChains"; import type { Wallet } from "../server-wallets/wallet-table/types"; import { SmartAccountCell } from "../server-wallets/wallet-table/wallet-table-ui.client"; import { deleteUserAccessToken, getUserAccessToken } from "./utils"; @@ -53,6 +48,7 @@ export function SendTestTransaction(props: { const [hasSentTx, setHasSentTx] = useState(false); const router = useDashboardRouter(); const trackEvent = useTrack(); + const chainsQuery = useAllChainsData(); const userAccessToken = props.userAccessToken ?? getUserAccessToken(props.project.id) ?? ""; @@ -227,33 +223,13 @@ export function SendTestTransaction(props: {

Network

+ chain.testnet === true && + chain.stackType !== "zksync_stack", + ) + .map((chain) => chain.chainId)} client={thirdwebClient} chainId={form.watch("chainId")} onChange={(chainId) => {