pub fn remove_vault(
        &self,
        admin_signer: &dyn Signer,
        vault_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_remove_vault(&admin_signer.pubkey(), vault_name)?;
        self.vaults.borrow_mut().data.remove(vault_name);
        self.vault_refs.borrow_mut().data.remove(vault_name);
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Removes the Vault's on-chain metadata
Removes the Vault's on-chain metadata
Removes the Vault ' s on - chain metadata
pub fn remove_vault(
        &self,
        admin_signer: &dyn Signer,
        vault_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_remove_vault(&admin_signer.pubkey(), vault_name)?;
        self.vaults.borrow_mut().data.remove(vault_name);
        self.vault_refs.borrow_mut().data.remove(vault_name);
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn remove_vault ( & self , admin_signer : & dyn Signer , vault_name : & str , ) -> Result < Signature , FarmClientError > { let inst = self . new_instruction_remove_vault ( & admin_signer . pubkey ( ) , vault_name ) ? ; self . vaults . borrow_mut ( ) . data . remove ( vault_name ) ; self . vault_refs . borrow_mut ( ) . data . remove ( vault_name ) ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Removes the Vault's on-chain metadata
Removes the Vault ' s on - chain metadata
&self
admin_signer
&dyn Signer
vault_name
&str
&self
admin_signer
&dyn Signer
vault_name
&str