pub fn assert_can_flag_transaction_error(
        &self,
        proposal_transaction_data: &ProposalTransactionV2,
        current_unix_timestamp: UnixTimestamp,
    ) -> Result<(), ProgramError> {
        // Instruction can be flagged for error only when it's eligible for execution
        self.assert_can_execute_transaction(proposal_transaction_data, current_unix_timestamp)?;

        if proposal_transaction_data.execution_status == TransactionExecutionStatus::Error {
            return Err(GovernanceError::TransactionAlreadyFlaggedWithError.into());
        }

        Ok(())
    }
/// Checks if the instruction can be flagged with error for the Proposal in the given state
Checks if the instruction can be flagged with error for the Proposal in the given state
Checks if the instruction can be flagged with error for the Proposal in the given state
pub fn assert_can_flag_transaction_error(
        &self,
        proposal_transaction_data: &ProposalTransactionV2,
        current_unix_timestamp: UnixTimestamp,
    ) -> Result<(), ProgramError> {
        // Instruction can be flagged for error only when it's eligible for execution
        self.assert_can_execute_transaction(proposal_transaction_data, current_unix_timestamp)?;
        if proposal_transaction_data.execution_status == TransactionExecutionStatus::Error {
            return Err(GovernanceError::TransactionAlreadyFlaggedWithError.into());
        }
        Ok(())
    }
pub fn assert_can_flag_transaction_error ( & self , proposal_transaction_data : & ProposalTransactionV2 , current_unix_timestamp : UnixTimestamp , ) -> Result < ( ) , ProgramError > { // Instruction can be flagged for error only when it's eligible for execution self . assert_can_execute_transaction ( proposal_transaction_data , current_unix_timestamp ) ? ; if proposal_transaction_data . execution_status == TransactionExecutionStatus :: Error { return Err ( GovernanceError :: TransactionAlreadyFlaggedWithError . into ( ) ) ; } Ok ( ( ) ) }
Checks if the instruction can be flagged with error for the Proposal in the given state
Checks if the instruction can be flagged with error for the Proposal in the given state
&self
proposal_transaction_data
&ProposalTransactionV2
current_unix_timestamp
UnixTimestamp
&self
proposal_transaction_data
&ProposalTransactionV2
current_unix_timestamp
UnixTimestamp