diff --git a/ui/lib/network-id.test.ts b/ui/lib/network-id.test.ts index 2ae9ce7..f3087a6 100644 --- a/ui/lib/network-id.test.ts +++ b/ui/lib/network-id.test.ts @@ -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) diff --git a/ui/lib/network-id.ts b/ui/lib/network-id.ts index 4a1e743..9b45041 100644 --- a/ui/lib/network-id.ts +++ b/ui/lib/network-id.ts @@ -6,6 +6,8 @@ export function networkToId(network: any) { return 1 case 'goerli': return 5 + case 'sepolia': + return 11155111 case 'local': return 31337 default: