Skip to content

Commit

Permalink
fix(faucet): change rpcUrls logic on goerli and sepolia for faucet pa…
Browse files Browse the repository at this point in the history
…ge (#225)

* feat(faucet): switch network to sepolia

* fix(faucet): change rpcUrls logic on goerli and sepolia

* fix: fix mnt symbol on sepolia

---------

Co-authored-by: shellteo <shellteo@163.com>
  • Loading branch information
rlverside and shellteo authored Oct 30, 2024
1 parent 893afca commit 19588e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/faucet/src/components/AddTokenBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function AddTokenBtn({
setEffect(true);
addToken({
address: NETWORKS[L1_CHAIN_ID],
symbol: "MNT",
symbol: "SepoliaMNT",
decimals: 18,
image: "https://token-list.mantle.xyz/data/Mantle/logo.svg",
});
Expand Down
16 changes: 4 additions & 12 deletions apps/faucet/src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ export const CHAINS: Record<
symbol: "GoerliETH",
decimals: 18,
},
rpcUrls: [
// infura backed redirect gateway
`${ABSOLUTE_PATH}/rpc`,
// public gateway
`https://rpc.ankr.com/eth_goerli`,
],
rpcUrls: [process.env.NEXT_PUBLIC_GOERLI_RPC_URL || `${ABSOLUTE_PATH}/rpc`],
blockExplorerUrls: ["https://goerli.etherscan.io/"],
},
11155111: {
Expand All @@ -101,10 +96,7 @@ export const CHAINS: Record<
decimals: 18,
},
rpcUrls: [
// infura backed redirect gateway
`${ABSOLUTE_PATH}/rpc`,
// public gateway
`https://rpc.ankr.com/eth_sepolia`,
process.env.NEXT_PUBLIC_SEPOLIA_RPC_URL || `${ABSOLUTE_PATH}/rpc`,
],
blockExplorerUrls: ["https://sepolia.etherscan.io/"],
},
Expand All @@ -121,7 +113,7 @@ export const CHAINS_FORMATTED: Record<number, Chain> = {
http: [CHAINS[5].rpcUrls[0]],
},
public: {
http: [CHAINS[5].rpcUrls[1]],
http: [CHAINS[5].rpcUrls[0]],
},
},
id: 5,
Expand All @@ -136,7 +128,7 @@ export const CHAINS_FORMATTED: Record<number, Chain> = {
http: [CHAINS[11155111].rpcUrls[0]],
},
public: {
http: [CHAINS[11155111].rpcUrls[1]],
http: [CHAINS[11155111].rpcUrls[0]],
},
},
id: 11155111,
Expand Down

0 comments on commit 19588e4

Please sign in to comment.