Skip to content

Commit

Permalink
Fix error message on missing keypair file and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jarry-xiao committed Aug 1, 2023
1 parent 06876ab commit 6cf8ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phoenix-cli"
version = "0.3.4"
version = "0.3.5"
description = "CLI and associated library for interacting with the Phoenix program from the command line"
edition = "2021"
license = "MIT"
Expand Down Expand Up @@ -33,7 +33,7 @@ spl-token = { version = "3.2.0", features = ["no-entrypoint"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
spl-associated-token-account = { version = "1.1.1", features = [ "no-entrypoint" ] }
phoenix-v1 = { version = "0.2.2", features = ["no-entrypoint"] }
phoenix-v1 = { version = "=0.2.2", features = ["no-entrypoint"] }
phoenix-sdk = "0.4.2"
bytemuck = "1.13.0"
reqwest = "0.11.14"
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ async fn main() -> anyhow::Result<()> {
};
let commitment =
ConfigInput::compute_commitment_config("", &cli.commitment.unwrap_or(config.commitment)).1;
let payer = get_payer_keypair_from_path(&cli.keypair_path.unwrap_or(config.keypair_path))?;
let payer = get_payer_keypair_from_path(&cli.keypair_path.unwrap_or(config.keypair_path))
.expect("Keypair file does not exist. Please run `solana-keygen new`");
let network_url = &get_network(&cli.url.unwrap_or(config.json_rpc_url)).to_string();
let client = EllipsisClient::from_rpc(
RpcClient::new_with_commitment(network_url.to_string(), commitment),
Expand Down

0 comments on commit 6cf8ac7

Please sign in to comment.