diff --git a/packages/example/playwright/with-metamask.ts b/packages/example/playwright/with-metamask.ts index 550e5e6a8..0bd914148 100644 --- a/packages/example/playwright/with-metamask.ts +++ b/packages/example/playwright/with-metamask.ts @@ -277,7 +277,6 @@ export const withMetamaskTest = (baseUrl: string) => { await waitForExpect(async () => { expect(await page.isVisible(XPath.text('span', 'Mainnet'))).to.be.true expect(await page.isVisible(XPath.text('span', 'Optimism'))).to.be.true - expect(await page.isVisible(XPath.text('span', 'Sepolia'))).to.be.true }) }) @@ -285,11 +284,11 @@ export const withMetamaskTest = (baseUrl: string) => { await page.goto(`${baseUrl}multichain`) await waitForExpect(async () => { - expect(await page.isVisible(XPath.text('span', 'Chain id:', 3))).to.be.true - expect(await page.isVisible(XPath.text('span', 'Current block timestamp:', 3))).to.be.true - expect(await page.isVisible(XPath.text('span', 'Current difficulty:', 3))).to.be.true - expect(await page.isVisible(XPath.text('span', 'Current block:', 3))).to.be.true - expect(await page.isVisible(XPath.text('span', 'Ether balance:', 3))).to.be.true + expect(await page.isVisible(XPath.text('span', 'Chain id:', 2))).to.be.true + expect(await page.isVisible(XPath.text('span', 'Current block timestamp:', 2))).to.be.true + expect(await page.isVisible(XPath.text('span', 'Current difficulty:', 2))).to.be.true + expect(await page.isVisible(XPath.text('span', 'Current block:', 2))).to.be.true + expect(await page.isVisible(XPath.text('span', 'Ether balance:', 2))).to.be.true }) }) }) diff --git a/packages/example/src/entrypoint.tsx b/packages/example/src/entrypoint.tsx index 1e34b7e7a..3c70f7d24 100644 --- a/packages/example/src/entrypoint.tsx +++ b/packages/example/src/entrypoint.tsx @@ -8,7 +8,6 @@ import { MetamaskConnector, CoinbaseWalletConnector, Optimism, - Sepolia, } from '@usedapp/core' import { App } from './App' import { PortisConnector } from '@usedapp/portis-connector' @@ -17,9 +16,6 @@ import { getDefaultProvider } from '@ethersproject/providers' const readOnlyUrls: Config['readOnlyUrls'] = { [Mainnet.chainId]: process.env.MAINNET_URL || getDefaultProvider('mainnet'), - [Sepolia.chainId]: process.env.MAINNET_URL - ? process.env.MAINNET_URL.replace('sepolia', 'goerli') - : 'https://rpc.sepolia.org', [Optimism.chainId]: 'https://mainnet.optimism.io', } @@ -44,7 +40,6 @@ const config: Config = { chains: [Mainnet], rpcMap: { [Mainnet.chainId]: 'https://mainnet.infura.io/v3/d8df2cb7844e4a54ab0a782f608749dd', - [Sepolia.chainId]: 'https://sepolia.infura.io/v3/d8df2cb7844e4a54ab0a782f608749dd', }, }), }, diff --git a/packages/example/src/pages/Multichain.tsx b/packages/example/src/pages/Multichain.tsx index 55995da98..454140016 100644 --- a/packages/example/src/pages/Multichain.tsx +++ b/packages/example/src/pages/Multichain.tsx @@ -1,11 +1,11 @@ import React from 'react' import { Container, MainContent, Section, SectionRow } from '../components/base/base' -import { Mainnet, Optimism, Sepolia } from '@usedapp/core' +import { Mainnet, Optimism } from '@usedapp/core' import { ChainState } from '../components/ChainState' import { Title } from '../typography/Title' import styled from 'styled-components' -const chains = [Mainnet.chainId, Optimism.chainId, Sepolia.chainId] +const chains = [Mainnet.chainId, Optimism.chainId] export const Multichain = () => { return (