pub fn new_instruction_governance_set_config(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        config: &GovernanceConfig,
    ) -> Result<Instruction, FarmClientError> {
        let (dao_program, _realm_address, _dao_token, governance, _token_owner, _proposal_address) =
            self.get_dao_accounts(wallet_address, governance_name, 0)?;

        let inst =
            dao_instruction::set_governance_config(&dao_program, &governance, config.clone());

        Ok(inst)
    }
/// Creates a new instruction for changing the governance config
Creates a new instruction for changing the governance config
Creates a new instruction for changing the governance config
pub fn new_instruction_governance_set_config(
        &self,
        wallet_address: &Pubkey,
        governance_name: &str,
        config: &GovernanceConfig,
    ) -> Result<Instruction, FarmClientError> {
        let (dao_program, _realm_address, _dao_token, governance, _token_owner, _proposal_address) =
            self.get_dao_accounts(wallet_address, governance_name, 0)?;
        let inst =
            dao_instruction::set_governance_config(&dao_program, &governance, config.clone());
        Ok(inst)
    }
pub fn new_instruction_governance_set_config ( & self , wallet_address : & Pubkey , governance_name : & str , config : & GovernanceConfig , ) -> Result < Instruction , FarmClientError > { let ( dao_program , _realm_address , _dao_token , governance , _token_owner , _proposal_address ) = self . get_dao_accounts ( wallet_address , governance_name , 0 ) ? ; let inst = dao_instruction :: set_governance_config ( & dao_program , & governance , config . clone ( ) ) ; Ok ( inst ) }
Creates a new instruction for changing the governance config
Creates a new instruction for changing the governance config
&self
wallet_address
&Pubkey
governance_name
&str
config
&GovernanceConfig
&self
wallet_address
&Pubkey
governance_name
&str
config
&GovernanceConfig