From 0c5bdde4e861bc5ae528dedf25cd7684a28081a8 Mon Sep 17 00:00:00 2001 From: Anynomouss Date: Tue, 18 Feb 2025 13:44:09 +0100 Subject: [PATCH] Removed some debugging code --- impls/Cargo.toml | 1 - impls/src/lifecycle/default.rs | 13 +++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/impls/Cargo.toml b/impls/Cargo.toml index 4dd380f..7689d61 100644 --- a/impls/Cargo.toml +++ b/impls/Cargo.toml @@ -19,7 +19,6 @@ serde_derive = "1" serde_json = "1" log = "0.4" ring = "0.16" -dirs = "2.0" uuid = { version = "0.8", features = ["serde", "v4"] } chrono = { version = "0.4.11", features = ["serde"] } lazy_static = "1" diff --git a/impls/src/lifecycle/default.rs b/impls/src/lifecycle/default.rs index b42ffb1..d0cc606 100644 --- a/impls/src/lifecycle/default.rs +++ b/impls/src/lifecycle/default.rs @@ -13,6 +13,7 @@ // limitations under the License. //! Default wallet lifecycle provider + use crate::config::{ config, GlobalWalletConfig, GlobalWalletConfigMembers, TorConfig, WalletConfig, GRIN_WALLET_DIR, }; @@ -133,17 +134,13 @@ where // just leave as is if file exists but there's no data dir if config_file_name.exists() { - panic!("Crash and burn!!!!!"); - //return Ok(()); + return Ok(()); } - // let mut abs_path_node = std::env::current_dir()?; - // let mut abs_path_wallet = std::env::current_dir()?; - // abs_path_wallet.push(self.data_dir.clone()); - // abs_path_node.push(self.data_dir.clone()); - // default_config.update_paths(&abs_path_wallet,&abs_path_node); - // println!("here, updating and writing config in default"); + let mut abs_path = std::env::current_dir()?; + abs_path.push(self.data_dir.clone()); + default_config.update_paths(&abs_path); let res = default_config.write_to_file(config_file_name.to_str().unwrap(), false, None, None); if let Err(e) = res {