Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task (Dev-Tools)]: Cannot open wallet config file at "/.iota/iota_config/client.yaml". Err: missing field keystore #1454

Closed
Thoralf-M opened this issue Jul 26, 2024 · 1 comment
Labels
dev-tools Issues related to the Developer Tools Team

Comments

@Thoralf-M
Copy link
Member

Bug description

iota client command failed to work, might be related to the yaml dependency update in #1106
Error is returned from here

Ok(serde_yaml::from_reader(reader)?)

Steps To reproduce the bug

  1. Run iota client

Expected behaviour

Should work

Actual behaviour

Cannot open wallet config file at "/.iota/iota_config/client.yaml". Err: missing field keystore``

@Thoralf-M Thoralf-M added bug dev-tools Issues related to the Developer Tools Team labels Jul 26, 2024
@Thoralf-M
Copy link
Member Author

Not sure what happened, I even wrote a test that was failing for me
crates/iota/src/unit_tests/keytool_tests.rs

#[test]
async fn test_save_client_config() {
    let temp_dir = TempDir::new().unwrap();
    let client_config_path = temp_dir.path().join(iota_config::IOTA_CLIENT_CONFIG);
    let keystore_path = temp_dir.path().join(iota_config::IOTA_KEYSTORE_FILENAME);

    let keystore = FileBasedKeystore::new(&keystore_path).unwrap();
    keystore.save().unwrap();

    let keystore = FileBasedKeystore::new(&keystore_path).unwrap();
    let client_config = iota_sdk::iota_client_config::IotaClientConfig::new(keystore.into());

    use iota_config::Config;
    client_config.save(&client_config_path).unwrap();

    let _client_config: iota_sdk::iota_client_config::IotaClientConfig =
        iota_config::PersistedConfig::read(&client_config_path).unwrap();
}

but after checking out some other commits and going back it's working fine now with rustc 1.80.0 and 7676306 (also tried few commits before and they were also fine now)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team
Projects
None yet
Development

No branches or pull requests

1 participant