You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(anyhow!("Remote verification only works withmainnet. Please omit the --remote flag to verify locally."));
100
+
returnErr(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"));
.map_err(|err| anyhow!("Unable to get signer from path: {}", err))
98
+
.map_err(|err| anyhow!("Failed to load keypair from path '{}'. Please check that the file exists and contains a valid Solana keypair.\nError: {}", path, err))
.ok_or_else(|| anyhow!("Unable to get config file path"))?;
107
+
.ok_or_else(|| anyhow!("Could not find Solana CLI configuration file. Please run 'solana config set --url <rpc-url>' to set up your configuration, or specify a custom config file with --config."))?;
108
108
Config::load(config_file)?
109
109
}
110
110
};
@@ -194,7 +194,7 @@ fn process_otter_verify_ixs(
194
194
.send_and_confirm_transaction_with_spinner(&tx)
195
195
.map_err(|err| {
196
196
println!("{:?}", err);
197
-
anyhow!("Failed to send transaction to the network.")
197
+
anyhow!("Failed to send verification transaction to the blockchain.")
let last_deployed_slot = get_last_deployed_slot(connection,&program_address.to_string())
266
266
.await
267
-
.map_err(|err| anyhow!("Unable to get last deployed slot: {}", err))?;
267
+
.map_err(|err| {
268
+
anyhow!(
269
+
"Failed to retrieve deployment information for program {}.\nError: {}",
270
+
program_address.to_string(),
271
+
err
272
+
)
273
+
})?;
268
274
269
275
let input_params = InputParams{
270
276
version:env!("CARGO_PKG_VERSION").to_string(),
@@ -347,7 +353,13 @@ pub async fn process_close(
347
353
348
354
let last_deployed_slot = get_last_deployed_slot(connection,&program_address.to_string())
349
355
.await
350
-
.map_err(|err| anyhow!("Unable to get last deployed slot: {}", err))?;
356
+
.map_err(|err| {
357
+
anyhow!(
358
+
"Failed to retrieve deployment information for program {}.\nError: {}",
359
+
program_address.to_string(),
360
+
err
361
+
)
362
+
})?;
351
363
352
364
let pda_account = find_build_params_pda(&program_address,&signer_pubkey).0;
353
365
@@ -370,10 +382,9 @@ pub async fn process_close(
370
382
)?;
371
383
}else{
372
384
returnErr(anyhow!(
373
-
"No PDA found for signer {:?} and program address {:?}. Make sure you are providing the program address, not the PDA address. Check that a signer exists for the program by running `solana-verify list-program-pdas --program-id {:?}`",
374
-
signer_pubkey,
385
+
"No verification data found for program {} with signer {}",
0 commit comments