pub fn remove_farm(
        &self,
        admin_signer: &dyn Signer,
        farm_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_remove_farm(&admin_signer.pubkey(), farm_name)?;
        self.farms.borrow_mut().data.remove(farm_name);
        self.farm_refs.borrow_mut().data.remove(farm_name);
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Removes the Farm's on-chain metadata
Removes the Farm's on-chain metadata
Removes the Farm ' s on - chain metadata
pub fn remove_farm(
        &self,
        admin_signer: &dyn Signer,
        farm_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_remove_farm(&admin_signer.pubkey(), farm_name)?;
        self.farms.borrow_mut().data.remove(farm_name);
        self.farm_refs.borrow_mut().data.remove(farm_name);
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn remove_farm ( & self , admin_signer : & dyn Signer , farm_name : & str , ) -> Result < Signature , FarmClientError > { let inst = self . new_instruction_remove_farm ( & admin_signer . pubkey ( ) , farm_name ) ? ; self . farms . borrow_mut ( ) . data . remove ( farm_name ) ; self . farm_refs . borrow_mut ( ) . data . remove ( farm_name ) ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Removes the Farm's on-chain metadata
Removes the Farm ' s on - chain metadata
&self
admin_signer
&dyn Signer
farm_name
&str
&self
admin_signer
&dyn Signer
farm_name
&str