Skip to content

Commit

Permalink
馃対 Add optimism sepolia to chain ids (#1155)
Browse files Browse the repository at this point in the history
* 馃対 Add optimism sepolia to chain ids

* Create dull-lamps-repeat.md

---------

Co-authored-by: 艁ukasz Stankiewicz <stankiewicz1998@gmail.com>
  • Loading branch information
MiZiet and nezouse committed May 13, 2024
1 parent 42eb191 commit c688928
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-lamps-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@usedapp/core": patch
---

馃対 Add optimism sepolia to chain ids
3 changes: 3 additions & 0 deletions packages/core/src/constants/chainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import {
MantleTestnet,
KromaSepoliaTestnet,
KromaMainnet,
OptimismSepolia,
} from '../model'

// rough alphabet order (put network from the same chain together)
Expand Down Expand Up @@ -121,6 +122,7 @@ export const DEFAULT_SUPPORTED_CHAINS = [
ThunderCoreTestnet,
OptimismGoerli,
OptimismKovan,
OptimismSepolia,
Optimism,
Velas,
VelasTestnet,
Expand Down Expand Up @@ -187,6 +189,7 @@ export enum ChainId {
Andromeda = 1088,
OptimismGoerli = 420,
OptimismKovan = 69,
OptimismSepolia = 11155420,
Optimism = 10,
Arbitrum = 42161,
ArbitrumRinkeby = 421611,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/useConfig.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('useConfig', () => {
const { result, waitForCurrent } = await renderDAppHook(() => useConfig(), { config: setup.config })
await waitForCurrent((val) => val !== undefined)
expect(result.error).to.be.undefined
expect(result.current.networks?.length).to.eq(68)
expect(result.current.networks?.length).to.eq(69)
expect(result.current.notifications?.checkInterval).to.eq(500)
expect(result.current.notifications?.expirationPeriod).to.eq(5000)
})
Expand Down

3 comments on commit c688928

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃帀 Published on https://usedapp.io as production
馃殌 Deployed on https://66420c207c6aff1384182587--usedapp-website.netlify.app

Please sign in to comment.