Skip to content

Commit

Permalink
Merge pull request #236 from nation3/fix/wrong_chain
Browse files Browse the repository at this point in the history
fix: support sepolia
  • Loading branch information
TTNguyenDev authored Feb 14, 2024
2 parents 79ef67f + 5cbc4ce commit 28927d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/lib/network-id.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ test("networkToId goerli", () => {
expect(actual).toBe(5)
})

test("networkToId sepolia", () => {
const actual = networkToId('sepolia')
expect(actual).toBe(11155111)
})

test("networkToId mainnet", () => {
const actual = networkToId('mainnet')
expect(actual).toBe(1)
Expand Down
2 changes: 2 additions & 0 deletions ui/lib/network-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export function networkToId(network: any) {
return 1
case 'goerli':
return 5
case 'sepolia':
return 11155111
case 'local':
return 31337
default:
Expand Down

0 comments on commit 28927d7

Please sign in to comment.