Allow selecting the Leo add verification network - #29612
Open
1sgtpepper wants to merge 1 commit into
Open
1sgtpepper wants to merge 1 commit into
1sgtpepper wants to merge 1 commit into
Conversation
1sgtpepper
force-pushed
the
fix/add-network-override
branch
from
July 30, 2026 15:47
7c427ec to
59d111e
Compare
1sgtpepper
marked this pull request as ready for review
July 30, 2026 16:23
1sgtpepper
force-pushed
the
fix/add-network-override
branch
from
August 10, 2026 14:10
8b98b34 to
3440816
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Fixes #29591.
leo addpreviously used--networkas a valueless source selector, so the verification network could only be selected throughNETWORK. This change separates the source selector from the verification-network override.--onchainreplaces the old valueless--network;--network <NETWORK>now selects the verification network.Test Plan
cargo +nightly fmt --all -- --check— passed.cargo clippy --workspace --all-targets --locked --features only_testnet -- -D warnings— passed.cargo nextest run --all --locked --cargo-profile ci --features only_testnet --verbose— passed on Linux, macOS, and Windows in CI.--onchain/--network <NETWORK>behavior.documentation/cli/add.mdanddocumentation/guides/dependencies.md; the selected network remains fetch/cache-only and is not stored inprogram.json.Related PRs
None.