diff --git a/wallet/src/helperfunctions.rs b/wallet/src/helperfunctions.rs index e602b02..f959d17 100644 --- a/wallet/src/helperfunctions.rs +++ b/wallet/src/helperfunctions.rs @@ -73,6 +73,7 @@ pub async fn fetch_config() -> Result { let mut file = tokio::fs::OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(config_home.join("wallet_config.json")) .await?; diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index bfc2e54..500ec45 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -217,7 +217,7 @@ pub enum Command { /// match the remote versions CheckHealth {}, /// Command to explicitly setup config and storage - /// + /// /// Does nothing in case if both already present Setup {}, }