Skip to content

Commit

Permalink
Sepolia support - small fixes (#3636)
Browse files Browse the repository at this point in the history
In this PR we address the leftover comments from the review of
#3633 (_Add support for
Mainnet Sepolia and Arbitrum Sepolia testnets_).

Latest build:
[extension-builds-3636](https://github.com/tahowallet/extension/suites/16906558298/artifacts/965879218)
(as of Thu, 05 Oct 2023 11:15:11 GMT).
  • Loading branch information
jagodarybacka authored Oct 9, 2023
2 parents 40b7fe5 + cfb1708 commit 29d5865
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion background/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const ARBITRUM_SEPOLIA: EVMNetwork = {
baseAsset: ARBITRUM_SEPOLIA_ETH,
chainID: "421614",
family: "EVM",
coingeckoPlatformID: "ethereum",
coingeckoPlatformID: "arbitrum-one",
}

export const ZK_SYNC: EVMNetwork = {
Expand Down
12 changes: 12 additions & 0 deletions background/services/chain/taho-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ import {
} from "@ethersproject/providers"
import { ConnectionInfo } from "@ethersproject/web"

// We want to add Sepolia to the list of Alchemy-supported chains. This will
// allow the extension to fill the list of historical transactions on that
// chain.
// We can't just add `SEPOLIA` to `ALCHEMY_SUPPORTED_CHAIN_IDS` because the
// `@ethersproject/providers@5.7.2` package that we use as a project dependency
// does not support Sepolia yet (no `sepolia` case in the `getUrl` function of
// `./src.ts/alchemy-provider.ts`). The support is planned to be added in the
// upcoming patch, but as it's release date is unknown, we're adding the Sepolia
// support by creating `TahoAlchemyProvider` class that handles this case.
// In the future we may want to add there another case, for `arbitrum-sepolia`,
// but we can't do that at this moment, as Alchemy does not offer an RPC for
// Arbitrum Sepolia yet.
export default class TahoAlchemyProvider extends AlchemyProvider {
static override getUrl(network: Network, apiKey: string): ConnectionInfo {
let host = null
Expand Down
1 change: 0 additions & 1 deletion ui/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@
"beta": "Mainnet (beta)",
"testnet": "Test Network",
"l2": "L2 scaling solution",
"l2Testnet": "L2 Test Network",
"compatibleChain": "EVM-compatible blockchain",
"avalanche": "Mainnet C-Chain",
"connected": "Connected"
Expand Down
2 changes: 1 addition & 1 deletion ui/components/TopMenu/TopMenuProtocolList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const testNetworks = [
},
{
network: ARBITRUM_SEPOLIA,
info: i18n.t("protocol.l2Testnet"),
info: i18n.t("protocol.testnet"),
isDisabled: false,
},
]
Expand Down

0 comments on commit 29d5865

Please sign in to comment.