Skip to content

Commit 6cf8ac7

Browse files
committed
Fix error message on missing keypair file and update dependencies
1 parent 06876ab commit 6cf8ac7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "phoenix-cli"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
description = "CLI and associated library for interacting with the Phoenix program from the command line"
55
edition = "2021"
66
license = "MIT"
@@ -33,7 +33,7 @@ spl-token = { version = "3.2.0", features = ["no-entrypoint"] }
3333
serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
3535
spl-associated-token-account = { version = "1.1.1", features = [ "no-entrypoint" ] }
36-
phoenix-v1 = { version = "0.2.2", features = ["no-entrypoint"] }
36+
phoenix-v1 = { version = "=0.2.2", features = ["no-entrypoint"] }
3737
phoenix-sdk = "0.4.2"
3838
bytemuck = "1.13.0"
3939
reqwest = "0.11.14"

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ async fn main() -> anyhow::Result<()> {
6060
};
6161
let commitment =
6262
ConfigInput::compute_commitment_config("", &cli.commitment.unwrap_or(config.commitment)).1;
63-
let payer = get_payer_keypair_from_path(&cli.keypair_path.unwrap_or(config.keypair_path))?;
63+
let payer = get_payer_keypair_from_path(&cli.keypair_path.unwrap_or(config.keypair_path))
64+
.expect("Keypair file does not exist. Please run `solana-keygen new`");
6465
let network_url = &get_network(&cli.url.unwrap_or(config.json_rpc_url)).to_string();
6566
let client = EllipsisClient::from_rpc(
6667
RpcClient::new_with_commitment(network_url.to_string(), commitment),

0 commit comments

Comments
 (0)