diff --git a/background/constants/networks.ts b/background/constants/networks.ts index ee82cffe6..835ad75f9 100644 --- a/background/constants/networks.ts +++ b/background/constants/networks.ts @@ -197,10 +197,15 @@ export const NETWORKS_SUPPORTING_SWAPS = new Set( ) export const ALCHEMY_SUPPORTED_CHAIN_IDS = new Set( - // TODO: Add `ARBITRUM_SEPOLIA` once Alchemy creates a dedicated RPC. - [ETHEREUM, POLYGON, ARBITRUM_ONE, OPTIMISM, GOERLI, SEPOLIA].map( - (network) => network.chainID, - ), + [ + ETHEREUM, + POLYGON, + ARBITRUM_ONE, + OPTIMISM, + GOERLI, + SEPOLIA, + ARBITRUM_SEPOLIA, + ].map((network) => network.chainID), ) export const FLASHBOTS_SUPPORTED_CHAIN_IDS = new Set([ETHEREUM.chainID]) diff --git a/background/services/chain/taho-provider.ts b/background/services/chain/taho-provider.ts index 89fda17b1..0cb392af7 100644 --- a/background/services/chain/taho-provider.ts +++ b/background/services/chain/taho-provider.ts @@ -20,10 +20,13 @@ import { ConnectionInfo } from "@ethersproject/web" export default class TahoAlchemyProvider extends AlchemyProvider { static override getUrl(network: Network, apiKey: string): ConnectionInfo { let host = null - switch (network.name) { - case "sepolia": + switch (network.chainId) { + case 11155111: // Ethereum Sepolia host = "eth-sepolia.g.alchemy.com/v2/" break + case 421614: // Arbitrum Sepolia + host = "arb-sepolia.g.alchemy.com/v2/" + break default: return AlchemyProvider.getUrl(network, apiKey) }