pub fn has_active_token_account(&self, wallet_address: &Pubkey, token_name: &str) -> bool {
        if let Ok(account) = self.get_token_account_data(wallet_address, token_name) {
            account.state == UiAccountState::Initialized
        } else {
            false
        }
    }
/// Returns true if the associated token account exists and is initialized
Returns true if the associated token account exists and is initialized
Returns true if the associated token account exists and is initialized
pub fn has_active_token_account(&self, wallet_address: &Pubkey, token_name: &str) -> bool {
        if let Ok(account) = self.get_token_account_data(wallet_address, token_name) {
            account.state == UiAccountState::Initialized
        } else {
            false
        }
    }
pub fn has_active_token_account ( & self , wallet_address : & Pubkey , token_name : & str ) -> bool { if let Ok ( account ) = self . get_token_account_data ( wallet_address , token_name ) { account . state == UiAccountState :: Initialized } else { false } }
Returns true if the associated token account exists and is initialized
Returns true if the associated token account exists and is initialized
&self
wallet_address
&Pubkey
token_name
&str
&self
wallet_address
&Pubkey
token_name
&str