Skip to content

Commit

Permalink
custom rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Dec 10, 2024
1 parent 9e319eb commit fcf2e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {
const coinbaseConnector = new CoinbaseWalletConnector({
appName: "DegenName.lol",
jsonRpcUrl: "https://rpc.degen.tips",
jsonRpcUrl: "https://degen-mainnet.g.alchemy.com/v2/Vn3jRzC23Ej4LYpz_TVNs20T9r-LigaO",
});
const mmConnector = new MetaMaskConnector({
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useChainHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function useChainHelpers() {

function getFallbackProvider(networkId) {
let chain = chains.find(chain => chain.chainId == networkId);
let urls = [chain.rpc2];
let urls = [chain.rpc1];

if (urls) {
const providers = urls.map(url => new ethers.providers.JsonRpcProvider(url));
Expand Down Expand Up @@ -79,7 +79,7 @@ const chains = [
chainId: 666666666,
name: "Degen",
currency: "DEGEN",
rpc1: "https://rpc.degen.tips",
rpc1: "https://degen-mainnet.g.alchemy.com/v2/Vn3jRzC23Ej4LYpz_TVNs20T9r-LigaO",
rpc2: "https://rpc.degen.tips",
blockExplorer: "https://explorer.degen.tips"
}
Expand Down

0 comments on commit fcf2e7f

Please sign in to comment.