pub fn new_instruction_governance_instruction_flag_error(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        proposal_index: u32,
        instruction_index: u16,
    ) -> Result<Instruction, FarmClientError> {
        let (dao_program, _realm_address, _dao_token, _governance, token_owner, proposal_address) =
            self.get_dao_accounts(wallet_address, governance_name, proposal_index)?;

        let instruction_address = get_proposal_instruction_address(
            &dao_program,
            &proposal_address,
            &0u16.to_le_bytes(),
            &instruction_index.to_le_bytes(),
        );

        let inst = dao_instruction::flag_instruction_error(
            &dao_program,
            &proposal_address,
            &token_owner,
            wallet_address,
            &instruction_address,
        );

        Ok(inst)
    }
/// Creates a new instruction for marking the instruction in governance proposal as failed
Creates a new instruction for marking the instruction in governance proposal as failed
Creates a new instruction for marking the instruction in governance proposal as failed
pub fn new_instruction_governance_instruction_flag_error(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        proposal_index: u32,
        instruction_index: u16,
    ) -> Result<Instruction, FarmClientError> {
        let (dao_program, _realm_address, _dao_token, _governance, token_owner, proposal_address) =
            self.get_dao_accounts(wallet_address, governance_name, proposal_index)?;
        let instruction_address = get_proposal_instruction_address(
            &dao_program,
            &proposal_address,
            &0u16.to_le_bytes(),
            &instruction_index.to_le_bytes(),
        );
        let inst = dao_instruction::flag_instruction_error(
            &dao_program,
            &proposal_address,
            &token_owner,
            wallet_address,
            &instruction_address,
        );
        Ok(inst)
    }
pub fn new_instruction_governance_instruction_flag_error ( & self , wallet_address : & Pubkey , governance_name : & str , proposal_index : u32 , instruction_index : u16 , ) -> Result < Instruction , FarmClientError > { let ( dao_program , _realm_address , _dao_token , _governance , token_owner , proposal_address ) = self . get_dao_accounts ( wallet_address , governance_name , proposal_index ) ? ; let instruction_address = get_proposal_instruction_address ( & dao_program , & proposal_address , & 0u16 . to_le_bytes ( ) , & instruction_index . to_le_bytes ( ) , ) ; let inst = dao_instruction :: flag_instruction_error ( & dao_program , & proposal_address , & token_owner , wallet_address , & instruction_address , ) ; Ok ( inst ) }
Creates a new instruction for marking the instruction in governance proposal as failed
Creates a new instruction for marking the instruction in governance proposal as failed
&self
wallet_address
&Pubkey
governance_name
&str
proposal_index
u32
instruction_index
u16
&self
wallet_address
&Pubkey
governance_name
&str
proposal_index
u32
instruction_index
u16