pub fn new_instruction_governance_vote_relinquish(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        proposal_index: u32,
    ) -> 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 inst = dao_instruction::relinquish_vote(
            &dao_program,
            &governance,
            &proposal_address,
            &token_owner,
            &dao_token.mint,
            Some(*wallet_address),
            Some(*wallet_address),
        );

        Ok(inst)
    }
/// Creates a new instruction for removing the vote from governance proposal
Creates a new instruction for removing the vote from governance proposal
Creates a new instruction for removing the vote from governance proposal
pub fn new_instruction_governance_vote_relinquish(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        proposal_index: u32,
    ) -> 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 inst = dao_instruction::relinquish_vote(
            &dao_program,
            &governance,
            &proposal_address,
            &token_owner,
            &dao_token.mint,
            Some(*wallet_address),
            Some(*wallet_address),
        );
        Ok(inst)
    }
pub fn new_instruction_governance_vote_relinquish ( & self , wallet_address : & Pubkey , governance_name : & str , proposal_index : u32 , ) -> 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 inst = dao_instruction :: relinquish_vote ( & dao_program , & governance , & proposal_address , & token_owner , & dao_token . mint , Some ( * wallet_address ) , Some ( * wallet_address ) , ) ; Ok ( inst ) }
Creates a new instruction for removing the vote from governance proposal
Creates a new instruction for removing the vote from governance proposal
&self
wallet_address
&Pubkey
governance_name
&str
proposal_index
u32
&self
wallet_address
&Pubkey
governance_name
&str
proposal_index
u32