Merge pull request #27 from Electric-Coin-Company/keys-toml

This commit is contained in:
Kris Nuttycombe 2024-06-20 17:39:46 -06:00 committed by GitHub
commit e30404688b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ use zcash_protocol::consensus::Parameters;
use crate::error;
const DEFAULT_WALLET_DIR: &str = "./zec_sqlite_wallet";
const KEYS_FILE: &str = "config.toml";
const KEYS_FILE: &str = "keys.toml";
const BLOCKS_FOLDER: &str = "blocks";
const DATA_DB: &str = "data.sqlite";
@ -114,7 +114,7 @@ pub(crate) fn init_wallet_config<P: AsRef<Path>>(
let config = WalletConfig {
mnemonic: Some(mnemonic.phrase().to_string()),
network: Some(network.name().to_string()),
birthday: Some(u32::from(birthday)),
birthday: Some(birthday),
};
let config_str = toml::to_string(&config)