Account->AccountSharedData (#15691)
This commit is contained in:
committed by
GitHub
parent
61c7ce857e
commit
8a3135d17b
@@ -52,7 +52,7 @@ fn calculate_stake_warmup(mut stake_entry: StakeHistoryEntry, stake_config: &Sta
|
||||
|
||||
fn stake_history_entry(epoch: Epoch, rpc_client: &RpcClient) -> Option<StakeHistoryEntry> {
|
||||
let stake_history_account = rpc_client.get_account(&stake_history::id()).ok()?;
|
||||
let stake_history = from_account::<StakeHistory>(&stake_history_account)?;
|
||||
let stake_history = from_account::<StakeHistory, _>(&stake_history_account)?;
|
||||
stake_history.get(&epoch).cloned()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user