diff --git a/lib/client/src/chain_data_fetcher.rs b/lib/client/src/chain_data_fetcher.rs index 2fe9313c9..bc4b096a9 100644 --- a/lib/client/src/chain_data_fetcher.rs +++ b/lib/client/src/chain_data_fetcher.rs @@ -248,10 +248,11 @@ impl crate::AccountFetcher for AccountFetcher { keys: &[Pubkey], ) -> anyhow::Result> { let chain_data = self.chain_data.read().unwrap(); - Ok(keys + let result = keys .iter() - .map(|pk| (*pk, chain_data.account(pk).unwrap().account.clone())) - .collect::>()) + .map(|pk| chain_data.account(pk).map(|x| (*pk, x.account.clone()))) + .collect::>>(); + result } async fn get_slot(&self) -> anyhow::Result {