rework BankClient.get_account_data (#15853)

This commit is contained in:
Jeff Washington (jwash) 2021-03-15 19:27:53 -05:00 committed by GitHub
parent c09ea2c314
commit e35d738906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -113,7 +113,10 @@ impl SyncClient for BankClient {
}
fn get_account_data(&self, pubkey: &Pubkey) -> Result<Option<Vec<u8>>> {
Ok(self.bank.get_account(pubkey).map(|account| account.data))
Ok(self
.bank
.get_account(pubkey)
.map(|account| Account::from(account).data))
}
fn get_account(&self, pubkey: &Pubkey) -> Result<Option<Account>> {