Skip to content

Conversation

@sagpatil
Copy link
Contributor

@sagpatil sagpatil commented Jul 2, 2025

Why

Solves
#2049

@github-project-automation github-project-automation bot moved this to Backlog (Not Ready) in DevX Jul 2, 2025
@sagpatil sagpatil requested a review from Copilot July 2, 2025 21:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds fallback behavior so that if no RPC URL, network passphrase, or network name is provided, the CLI first attempts to use the default network from the user config and otherwise defaults to the testnet. Also includes a new unit test for the testnet-default case.

  • Introduce logic to read config.defaults.network and fall back to "testnet" when nothing is specified
  • Add a Tokio test to verify the default-to-testnet behavior
Comments suppressed due to low confidence (1)

cmd/soroban-cli/src/config/network.rs:473

  • The test references passphrase::TESTNET but doesn’t import the passphrase module; add use super::super::passphrase; (or the correct path) to bring the constant into scope and prevent a compile error.
        use super::super::locator;

@sagpatil sagpatil enabled auto-merge (squash) July 7, 2025 23:19
@sagpatil sagpatil merged commit 54ebcaa into main Jul 10, 2025
35 checks passed
@sagpatil sagpatil deleted the default_testnet branch July 10, 2025 20:02
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Jul 10, 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.

3 participants