We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 367cb85 + e2d5497 commit 8e35f5eCopy full SHA for 8e35f5e
cli/src/handler.rs
@@ -82,12 +82,7 @@ impl CliHandler {
82
let config_file = solana_cli_config::CONFIG_FILE
83
.as_ref()
84
.ok_or_else(|| anyhow!("unable to get config file path"))?;
85
- match Config::load(config_file) {
86
- Ok(config) => read_keypair_file(config.keypair_path.as_str())
87
- .map_err(|e| anyhow!("Failed to read keypair path: {e:?}"))?,
88
- Err(_) => read_keypair_file(args.keypair_path.clone().unwrap())
89
90
- }
+ Config::load(config_file)?
91
}
92
};
93
0 commit comments