Skip to content

Commit

Permalink
Remove sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
nezouse committed May 14, 2024
1 parent 672ea7c commit 4af787a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
11 changes: 5 additions & 6 deletions packages/example/playwright/with-metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,18 @@ 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
})
})

it('Check if all chains were loaded', async () => {
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
})
})
})
Expand Down
5 changes: 0 additions & 5 deletions packages/example/src/entrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
MetamaskConnector,
CoinbaseWalletConnector,
Optimism,
Sepolia,
} from '@usedapp/core'
import { App } from './App'
import { PortisConnector } from '@usedapp/portis-connector'
Expand All @@ -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',
}

Expand All @@ -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',
},
}),
},
Expand Down
4 changes: 2 additions & 2 deletions packages/example/src/pages/Multichain.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down

0 comments on commit 4af787a

Please sign in to comment.