From 076bf4583561798b0d906f004bc25e1a7ab35127 Mon Sep 17 00:00:00 2001 From: Francesco Ceccon Date: Thu, 4 Apr 2024 16:15:31 +0200 Subject: [PATCH] Update template to not use goerli --- .changeset/lovely-flies-shake.md | 5 +++++ .../templates/next/src/components/starknet-provider.tsx | 2 +- packages/create-starknet/public/templates/vite/src/main.tsx | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/lovely-flies-shake.md diff --git a/.changeset/lovely-flies-shake.md b/.changeset/lovely-flies-shake.md new file mode 100644 index 00000000..2dfb286c --- /dev/null +++ b/.changeset/lovely-flies-shake.md @@ -0,0 +1,5 @@ +--- +"create-starknet": patch +--- + +Update template to not use goerli diff --git a/packages/create-starknet/public/templates/next/src/components/starknet-provider.tsx b/packages/create-starknet/public/templates/next/src/components/starknet-provider.tsx index 90a80451..d79097d0 100644 --- a/packages/create-starknet/public/templates/next/src/components/starknet-provider.tsx +++ b/packages/create-starknet/public/templates/next/src/components/starknet-provider.tsx @@ -1,7 +1,7 @@ "use client"; import { ReactNode } from "react"; -import { devnet, goerli, mainnet } from "@starknet-react/chains"; +import { mainnet } from "@starknet-react/chains"; import { StarknetConfig, argent, diff --git a/packages/create-starknet/public/templates/vite/src/main.tsx b/packages/create-starknet/public/templates/vite/src/main.tsx index fe0a0dd7..d860cd79 100644 --- a/packages/create-starknet/public/templates/vite/src/main.tsx +++ b/packages/create-starknet/public/templates/vite/src/main.tsx @@ -1,4 +1,4 @@ -import { devnet, goerli, mainnet } from "@starknet-react/chains"; +import { mainnet } from "@starknet-react/chains"; import { StarknetConfig, argent, @@ -12,7 +12,7 @@ import App from "./App"; import "./globals.css"; function Root({ children }: { children: React.ReactNode }) { - const chains = [goerli, mainnet, devnet]; + const chains = [mainnet]; const provider = publicProvider(); const { connectors } = useInjectedConnectors({ // Show these connectors if the user has no connector installed.