Skip to content

Commit

Permalink
update rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Leouarz committed Apr 6, 2024
1 parent 12e2276 commit 04fe5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apps-config/src/variables/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const config: { [network: string]: { url: `wss://${string}`, lcUrl: string } } = {
goldberg: {
lcUrl: process.env.GOLDBERG_LC || 'https://api.lightclient.goldberg.avail.tools/v1',
url: process.env.GOLDBERG_URL as `wss://${string}` || 'wss://goldberg.avail.tools/ws'
url: process.env.GOLDBERG_URL as `wss://${string}` || 'wss://rpc-testnet.avail.tools/ws'
},
turing: {
lcUrl: process.env.TURING_LC || 'https://api.lightclient.turing.avail.so/v1',
Expand All @@ -19,7 +19,7 @@ const config: { [network: string]: { url: `wss://${string}`, lcUrl: string } } =
export const getLCFromUrl = (apiUrl: string) => {
if (apiUrl.includes('turing')) {
return config.turing.lcUrl;
} else if (apiUrl.includes('goldberg')) {
} else if (apiUrl.includes('goldberg') || apiUrl === "wss://rpc-testnet.avail.tools/ws") {

Check failure on line 22 in packages/apps-config/src/variables/config.ts

View workflow job for this annotation

GitHub Actions / pr (lint)

Strings must use singlequote
return config.goldberg.lcUrl;
} else {
return config.turing.lcUrl; // TODO-mainnet
Expand Down

0 comments on commit 04fe5d6

Please sign in to comment.