Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check url function in SNB #89

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

dmytrotkk
Copy link
Contributor

@dmytrotkk dmytrotkk commented Feb 7, 2024

This PR improves the check URL function in the SKALE network-browser to improve network provider compatibility.

In the previous version fetch with an empty body was used to check that mainnet and sChain endpoints were available, which failed for some providers (Infura for example). This PR fixes it using provider.getBlockNumber to determine if the endpoint is valid.

No additional tests are needed, and no performance changes.

Fixes #85

@dmytrotkk dmytrotkk merged commit 8ce465e into develop Feb 8, 2024
16 checks passed
@dmytrotkk dmytrotkk deleted the update-check-url-func branch February 8, 2024 11:38
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SNB does not work with DNS
3 participants