Skip to content

Commit 49e6e81

Browse files
committed
chore: web migrated to Arbitrum Goerli
1 parent 59347c1 commit 49e6e81

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

web/src/components/WrongChainBoundary.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from "styled-components";
33
import { ErrorBoundary } from "react-error-boundary";
44
import { Button } from "@kleros/ui-components-library";
55
import { switchChain } from "utils/switchChain";
6+
import { DEFAULT_CHAIN, SUPPORTED_CHAINS } from "consts/supportedChains";
67

78
const WrongChainRecovery: React.FC<{ resetErrorBoundary: () => void }> = ({
89
resetErrorBoundary,
@@ -13,10 +14,10 @@ const WrongChainRecovery: React.FC<{ resetErrorBoundary: () => void }> = ({
1314
<Button
1415
isLoading={loading}
1516
disabled={loading}
16-
text="Switch to Arbitrum"
17+
text={`Switch to ${SUPPORTED_CHAINS[DEFAULT_CHAIN].chainName}`}
1718
onClick={() => {
1819
setLoading(true);
19-
switchChain(421611)
20+
switchChain(DEFAULT_CHAIN)
2021
.then(resetErrorBoundary)
2122
.finally(() => setLoading(false));
2223
}}

web/src/consts/supportedChains.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
export const SUPPORTED_CHAINS = {
2-
421611: {
3-
chainName: "Arbitrum Rinkeby",
2+
421613: {
3+
chainName: "Arbitrum Goerli",
44
nativeCurrency: { name: "ETH", symbol: "ETH", decimals: 18 },
5-
rpcUrls: ["https://rinkeby.arbitrum.io/rpc"],
6-
blockExplorerUrls: ["https://testnet.arbiscan.io/"],
5+
rpcUrls: ["https://goerli-rollup.arbitrum.io/rpc"],
6+
blockExplorerUrls: ["https://goerli.arbiscan.io/"],
77
},
88
};
99

10+
export const DEFAULT_CHAIN = 421613;
11+
1012
export const SUPPORTED_CHAINIDS = Object.keys(SUPPORTED_CHAINS).map((x) =>
1113
parseInt(x)
1214
);

0 commit comments

Comments
 (0)