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.
1 parent bf8c04a commit e2d5497Copy full SHA for e2d5497
cli/src/handler.rs
@@ -82,11 +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
+ Config::load(config_file)?
90
}
91
};
92
0 commit comments