Skip to content

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Oct 9, 2025

Motivation

Ideally NetworkConfigs is an enum, but for now we're stuck with the --<network> flag paradigm. Ideally, it would be something like --flavor <network> or --network <network>, because it is a logic error to have multiple networks enabled at the same time.

Solution

Given we're stuck with --<network>, we should mark NetworkConfigs non-exhaustive to prevent constructing the struct directly, and to prevent destructuring it without handling future networks.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@onbjerg onbjerg self-assigned this Oct 9, 2025
@onbjerg onbjerg enabled auto-merge (squash) October 9, 2025 10:10
@onbjerg onbjerg closed this Oct 9, 2025
auto-merge was automatically disabled October 9, 2025 10:16

Pull request was closed

@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant