pub fn close_token_account(
        &self,
        signer: &dyn Signer,
        token_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_close_token_account(&signer.pubkey(), token_name)?;
        self.sign_and_send_instructions(&[signer], &[inst])
    }
/// Closes the associated token account for the given user's main account
Closes the associated token account for the given user's main account
Closes the associated token account for the given user ' s main account
pub fn close_token_account(
        &self,
        signer: &dyn Signer,
        token_name: &str,
    ) -> Result<Signature, FarmClientError> {
        let inst = self.new_instruction_close_token_account(&signer.pubkey(), token_name)?;
        self.sign_and_send_instructions(&[signer], &[inst])
    }
pub fn close_token_account ( & self , signer : & dyn Signer , token_name : & str , ) -> Result < Signature , FarmClientError > { let inst = self . new_instruction_close_token_account ( & signer . pubkey ( ) , token_name ) ? ; self . sign_and_send_instructions ( & [ signer ] , & [ inst ] ) }
Closes the associated token account for the given user's main account
Closes the associated token account for the given user ' s main account
&self
signer
&dyn Signer
token_name
&str
&self
signer
&dyn Signer
token_name
&str