From 973df825b7c347b8a056377fd341b25646a92b88 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Fri, 6 Oct 2023 09:46:26 -0700 Subject: [PATCH] log signature after successful feature activation (#33488) --- cli/src/feature.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cli/src/feature.rs b/cli/src/feature.rs index 8c065d78feec91..d55f3dee88a7d0 100644 --- a/cli/src/feature.rs +++ b/cli/src/feature.rs @@ -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}, @@ -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}, @@ -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::(result, config) }