diff --git a/cli-config/src/config.rs b/cli-config/src/config.rs index 0f0eb82db..6004c47ba 100644 --- a/cli-config/src/config.rs +++ b/cli-config/src/config.rs @@ -17,15 +17,15 @@ lazy_static! { #[derive(Serialize, Deserialize, Default, Debug, PartialEq)] pub struct Config { - pub url: String, + pub json_rpc_url: String, pub websocket_url: String, pub keypair_path: String, } impl Config { - pub fn new(url: &str, websocket_url: &str, keypair_path: &str) -> Self { + pub fn new(json_rpc_url: &str, websocket_url: &str, keypair_path: &str) -> Self { Self { - url: url.to_string(), + json_rpc_url: json_rpc_url.to_string(), websocket_url: websocket_url.to_string(), keypair_path: keypair_path.to_string(), } diff --git a/cli/src/main.rs b/cli/src/main.rs index 2da22d2ec..d704d6958 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -22,12 +22,12 @@ fn parse_settings(matches: &ArgMatches<'_>) -> Result) -> Result) -> Result( }; let (_, json_rpc_url) = CliConfig::compute_json_rpc_url_setting( matches.value_of("json_rpc_url").unwrap_or(""), - &config.url, + &config.json_rpc_url, ); let (_, websocket_url) = CliConfig::compute_websocket_url_setting( matches.value_of("websocket_url").unwrap_or(""), &config.websocket_url, matches.value_of("json_rpc_url").unwrap_or(""), - &config.url, + &config.json_rpc_url, ); let (_, default_signer_path) = CliConfig::compute_keypair_path_setting( matches.value_of("keypair").unwrap_or(""),