Skip to content

Commit

Permalink
log signature after successful feature activation (solana-labs#33488)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Oct 6, 2023
1 parent 446d89e commit 973df82
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cli/src/feature.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use {
crate::{
cli::{CliCommand, CliCommandInfo, CliConfig, CliError, ProcessResult},
cli::{
log_instruction_custom_error, CliCommand, CliCommandInfo, CliConfig, CliError,
ProcessResult,
},
spend_utils::{resolve_spend_tx_and_check_account_balance, SpendAmount},
},
clap::{value_t_or_exit, App, AppSettings, Arg, ArgMatches, SubCommand},
Expand All @@ -23,6 +26,7 @@ use {
message::Message,
pubkey::Pubkey,
stake_history::Epoch,
system_instruction::SystemError,
transaction::Transaction,
},
std::{cmp::Ordering, collections::HashMap, fmt, rc::Rc, str::FromStr},
Expand Down Expand Up @@ -957,6 +961,6 @@ fn process_activate(
FEATURE_NAMES.get(&feature_id).unwrap(),
feature_id
);
rpc_client.send_and_confirm_transaction_with_spinner(&transaction)?;
Ok("".to_string())
let result = rpc_client.send_and_confirm_transaction_with_spinner(&transaction);
log_instruction_custom_error::<SystemError>(result, config)
}

0 comments on commit 973df82

Please sign in to comment.