From 3eed849c5b55332979d8afdcbfda460d1a2f8a6b Mon Sep 17 00:00:00 2001 From: bluecco Date: Wed, 6 Mar 2024 10:35:59 +0100 Subject: [PATCH] chore: add sepolia support for injected connectors --- src/connectors/injected/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connectors/injected/index.ts b/src/connectors/injected/index.ts index 8597513..c893e2f 100644 --- a/src/connectors/injected/index.ts +++ b/src/connectors/injected/index.ts @@ -85,12 +85,12 @@ export class InjectedConnector extends Connector { chainId?: StarknetChainId, accounts?: string[], ): void { - const { SN_GOERLI, SN_MAIN } = constants.StarknetChainId + const { SN_GOERLI, SN_MAIN, SN_SEPOLIA } = constants.StarknetChainId const account = accounts?.[0] switch (chainId) { - // TODO: add sepolia case SN_MAIN: case SN_GOERLI: + case SN_SEPOLIA: this.emit("change", { chainId, account }) break default: