Skip to content

Commit

Permalink
Use --rpc-header in the rest of the commands
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Sep 20, 2024
1 parent ba063f0 commit 741ad29
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/soroban-cli/src/config/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ pub struct Args {
help_heading = HEADING_RPC,
)]
pub rpc_url: Option<String>,
/// Optional RPC provider api key headers
#[arg(
long = "rpc-header",
requires = "rpc_url",
env = "STELLAR_RPC_HEADER",
help_heading = HEADING_RPC,
)]
pub rpc_header: Option<String>,
/// Network passphrase to sign the transaction sent to the rpc server
#[arg(
long = "network-passphrase",
Expand Down Expand Up @@ -79,7 +87,7 @@ impl Args {
{
Ok(Network {
rpc_url,
rpc_header: None, //todo: fix me
rpc_header: self.rpc_header.clone(),
network_passphrase,
})
} else {
Expand Down

0 comments on commit 741ad29

Please sign in to comment.