Skip to content

Commit 3e56d94

Browse files
committed
rename spaced_rpc_url to rpc_url
1 parent 60baf59 commit 3e56d94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

client/src/bin/space-cli.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct Args {
5353
output_format: Format,
5454
/// Spaced RPC URL [default: based on specified chain]
5555
#[arg(long)]
56-
spaced_rpc_url: Option<String>,
56+
rpc_url: Option<String>,
5757
/// Spaced RPC cookie file path
5858
#[arg(long, env = "SPACED_RPC_COOKIE")]
5959
rpc_cookie: Option<PathBuf>,
@@ -392,8 +392,8 @@ struct Base64Bytes(
392392
impl SpaceCli {
393393
async fn configure() -> anyhow::Result<(Self, Args)> {
394394
let mut args = Args::parse();
395-
if args.spaced_rpc_url.is_none() {
396-
args.spaced_rpc_url = Some(default_spaced_rpc_url(&args.chain));
395+
if args.rpc_url.is_none() {
396+
args.rpc_url = Some(default_rpc_url(&args.chain));
397397
}
398398

399399
let auth_token = if args.rpc_user.is_some() {
@@ -415,7 +415,7 @@ impl SpaceCli {
415415
})?;
416416
auth_token_from_cookie(&cookie)
417417
};
418-
let client = http_client_with_auth(args.spaced_rpc_url.as_ref().unwrap(), &auth_token)?;
418+
let client = http_client_with_auth(args.rpc_url.as_ref().unwrap(), &auth_token)?;
419419

420420
Ok((
421421
Self {
@@ -425,7 +425,7 @@ impl SpaceCli {
425425
force: args.force,
426426
skip_tx_check: args.skip_tx_check,
427427
network: args.chain,
428-
rpc_url: args.spaced_rpc_url.clone().unwrap(),
428+
rpc_url: args.rpc_url.clone().unwrap(),
429429
client,
430430
},
431431
args,
@@ -959,7 +959,7 @@ async fn handle_commands(cli: &SpaceCli, command: Commands) -> Result<(), Client
959959
Ok(())
960960
}
961961

962-
fn default_spaced_rpc_url(chain: &ExtendedNetwork) -> String {
962+
fn default_rpc_url(chain: &ExtendedNetwork) -> String {
963963
format!("http://127.0.0.1:{}", default_spaces_rpc_port(chain))
964964
}
965965

0 commit comments

Comments
 (0)