pub fn add_token(
        &self,
        admin_signer: &dyn Signer,
        token: Token,
    ) -> Result<Signature, FarmClientError> {
        self.tokens
            .borrow_mut()
            .data
            .insert(token.name.to_string(), token);
        self.token_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_token(&admin_signer.pubkey(), token)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
/// Records the Token metadata on-chain
Records the Token metadata on-chain
Records the Token metadata on - chain
pub fn add_token(
        &self,
        admin_signer: &dyn Signer,
        token: Token,
    ) -> Result<Signature, FarmClientError> {
        self.tokens
            .borrow_mut()
            .data
            .insert(token.name.to_string(), token);
        self.token_refs.borrow_mut().reset();
        let inst = self.new_instruction_add_token(&admin_signer.pubkey(), token)?;
        self.sign_and_send_instructions(&[admin_signer], &[inst])
    }
pub fn add_token ( & self , admin_signer : & dyn Signer , token : Token , ) -> Result < Signature , FarmClientError > { self . tokens . borrow_mut ( ) . data . insert ( token . name . to_string ( ) , token ) ; self . token_refs . borrow_mut ( ) . reset ( ) ; let inst = self . new_instruction_add_token ( & admin_signer . pubkey ( ) , token ) ? ; self . sign_and_send_instructions ( & [ admin_signer ] , & [ inst ] ) }
Records the Token metadata on-chain
Records the Token metadata on - chain
&self
admin_signer
&dyn Signer
token
Token
&self
admin_signer
&dyn Signer
token
Token