Skip to content

Commit

Permalink
use correct rpc port and minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: borngraced <[email protected]>
  • Loading branch information
borngraced committed Dec 12, 2023
1 parent 71cbad1 commit 8a225b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mm2src/komodefi_cli/src/cli_cmd_args/cmd_set_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ use inquire::{Confirm, Text};
use std::fs::File;
use std::io::Read;

const DEFAULT_RPC_URL: &str = "127.0.0.1:7789";
const DEFAULT_RPC_URL: &str = "127.0.0.1:7783";

#[derive(Args)]
#[group(required = false, multiple = true)]
pub(crate) struct SetConfigArgs {
#[arg(long, short, help = "Set if you are going to set up a password")]
pub(crate) password: Option<bool>,
#[arg(long, short, visible_alias = "url", help = "KomoDeFi RPC API Uri. localhost:7789")]
#[arg(long, short, visible_alias = "url", help = "KomoDeFi RPC API Uri. localhost:7783")]
pub(crate) uri: Option<String>,
#[arg(
long,
Expand Down
6 changes: 3 additions & 3 deletions mm2src/komodefi_cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub(super) fn get_config(option: &crate::cli::GetOption) {
if option.unhide {
komodefi_cfg.print_config_with_password()
} else {
println!("{}", komodefi_cfg)
info!("{}", komodefi_cfg)
}
}

Expand Down Expand Up @@ -221,10 +221,10 @@ impl KomodefiConfigImpl {

fn print_config_with_password(&self) {
if !self.is_set() {
return println!("komodefi configuration is not set");
return info!("komodefi configuration is not set");
}

println!(
info!(
"mm2 RPC URL: {}\nmm2 RPC password: {}",
self.rpc_uri.as_ref().expect("Expected rpc_uri is set"),
self.rpc_password.clone().expect("Expected rpc_password is not set")
Expand Down

0 comments on commit 8a225b3

Please sign in to comment.