Skip to content

Commit

Permalink
fix: make network args optional and postpone error until resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Nov 1, 2024
1 parent 1156ace commit 32ced65
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/soroban-cli/src/config/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ pub struct Args {
/// RPC server endpoint
#[arg(
long = "rpc-url",
requires = "network_passphrase",
required_unless_present = "network",
env = "STELLAR_RPC_URL",
help_heading = HEADING_RPC,
)]
Expand All @@ -68,17 +66,13 @@ pub struct Args {
/// Network passphrase to sign the transaction sent to the rpc server
#[arg(
long = "network-passphrase",
requires = "rpc_url",
required_unless_present = "network",
env = "STELLAR_NETWORK_PASSPHRASE",
help_heading = HEADING_RPC,
)]
pub network_passphrase: Option<String>,
/// Name of network to use from config
#[arg(
long,
required_unless_present = "rpc_url",
required_unless_present = "network_passphrase",
env = "STELLAR_NETWORK",
help_heading = HEADING_RPC,
)]
Expand Down

0 comments on commit 32ced65

Please sign in to comment.