File tree Expand file tree Collapse file tree
modules/etherlink/bridge/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const TxStatus = ({
3030 < Typography variant = "caption" >
3131 { label } :{ " " }
3232 < Link
33- href = { `https://testnet .explorer.etherlink.com/tx/${ hash } ` }
33+ href = { `https://shadownet .explorer.etherlink.com/tx/${ hash } ` }
3434 target = "_blank"
3535 rel = "noopener noreferrer"
3636 style = { { color : "#4FC3F7" } }
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const getNetworkHead = async (network: Network): Promise<number> => {
3131 if ( network . startsWith ( "etherlink" ) ) {
3232 const [ _ , etherlinkNetwork ] = network . split ( "_" )
3333 const reqUrl = `https://${
34- etherlinkNetwork === "mainnet" ? "" : "testnet- "
34+ etherlinkNetwork === "mainnet" ? "" : "shadownet. "
3535 } explorer.etherlink.com/api/v2/blocks?type=block`
3636
3737 const etherlinkData = await fetch ( reqUrl ) . then ( x => x . json ( ) )
Original file line number Diff line number Diff line change 11import React , { ReactNode , useMemo } from "react"
22import { QueryClient , QueryClientProvider } from "@tanstack/react-query"
33import { WagmiProvider } from "wagmi"
4- import { config } from "./config"
4+ import { config , etherlinkShadownet } from "./config"
55import { ConnectKitProvider } from "connectkit"
6- import { etherlink , etherlinkTestnet } from "wagmi/chains"
6+ import { etherlink } from "wagmi/chains"
77import { useNetwork } from "services/useNetwork"
88
99const queryClient = new QueryClient ( )
@@ -12,9 +12,9 @@ export const Web3Provider = ({ children }: { children: ReactNode }) => {
1212 const { network : currentNetwork } = useNetwork ( )
1313 const ethInitialChainId = useMemo ( ( ) => {
1414 const network = currentNetwork || "etherlink_mainnet"
15- if ( ! network ?. startsWith ( "etherlink" ) ) return etherlinkTestnet . id
15+ if ( ! network ?. startsWith ( "etherlink" ) ) return etherlinkShadownet . id
1616 if ( network ?. includes ( "mainnet" ) ) return etherlink . id
17- return etherlinkTestnet . id
17+ return etherlinkShadownet . id
1818 } , [ currentNetwork ] )
1919 const connectkitOptions = useMemo ( ( ) => ( { initialChainId : ethInitialChainId } ) , [ ethInitialChainId ] )
2020
You can’t perform that action at this time.
0 commit comments