Skip to content

Commit 568cb33

Browse files
authored
Merge pull request #179 from otter-sec/feature/config-flag-and-error-improvements
Add --config flag to specify custom configuration file path
2 parents 4e835fd + ef33a2f commit 568cb33

File tree

5 files changed

+199
-58
lines changed

5 files changed

+199
-58
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "solana-verify"
3-
version = "0.4.8"
3+
version = "0.4.9"
44
edition = "2021"
55
description = "A CLI tool for building verifiable Solana programs"
66
license = "MIT"

src/api/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ pub async fn send_job_with_uploader_to_remote(
9797
// Check that PDA exists before sending job
9898
let genesis_hash = get_genesis_hash(connection)?;
9999
if genesis_hash != MAINNET_GENESIS_HASH {
100-
return Err(anyhow!("Remote verification only works with mainnet. Please omit the --remote flag to verify locally."));
100+
return Err(anyhow!("Remote verification service only supports mainnet. You're currently connected to a different network.\n\nTo use remote verification:\n• Connect to mainnet with: --url mainnet\n• Or remove the --remote flag to verify locally"));
101101
}
102-
get_program_pda(connection, program_id, Some(uploader.to_string())).await?;
102+
get_program_pda(connection, program_id, Some(uploader.to_string()), None).await?;
103103

104104
let client = Client::builder()
105105
.timeout(Duration::from_secs(18000))

0 commit comments

Comments
 (0)