Skip to content

Commit

Permalink
Merge pull request #320 from alephium/uses-infos-version-endpoint
Browse files Browse the repository at this point in the history
Replace `/infos/node` endpoint with `/infos/version` endpoint
  • Loading branch information
Lbqds authored Feb 26, 2024
2 parents 421af27 + cf5e7a5 commit edc292b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function getConfigFile(): string {

export async function isNetworkLive(url: string): Promise<boolean> {
try {
const res = await fetch(`${url}/infos/node`, { method: 'Get' })
const res = await fetch(`${url}/infos/version`, { method: 'Get' })
return res.status === 200
} catch (e) {
console.error(`Error when checking if network is live: ${e}`)
Expand Down

0 comments on commit edc292b

Please sign in to comment.