Skip to content

fix: validate network before fetch loop for fail-fast behavior#27

Merged
satoshai-dev merged 2 commits intomainfrom
fix/validate-network-early
Feb 24, 2026
Merged

fix: validate network before fetch loop for fail-fast behavior#27
satoshai-dev merged 2 commits intomainfrom
fix/validate-network-early

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

Summary

  • Call resolveNetwork() once before the contract iteration loop
  • Invalid network strings now fail immediately instead of surfacing during the first fetch iteration
  • Better UX when fetching multiple contracts — no partial progress before error

Closes #12

🤖 Generated with Claude Code

@satoshai-dev satoshai-dev force-pushed the fix/validate-network-early branch from ff4ad20 to 79cd70e Compare February 24, 2026 18:03
satoshai-dev and others added 2 commits February 24, 2026 18:19
Move network validation before the contract iteration loop so invalid
network strings are caught immediately instead of surfacing during
the first fetch — which is confusing when fetching multiple contracts.

Closes #12

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev force-pushed the fix/validate-network-early branch from 9573027 to ece079a Compare February 24, 2026 18:19
@satoshai-dev satoshai-dev merged commit d79423b into main Feb 24, 2026
1 check passed
@satoshai-dev satoshai-dev deleted the fix/validate-network-early branch February 24, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improvement: validate network before fetch loop

1 participant