Account->AccountSharedData (#15691)
This commit is contained in:
committed by
GitHub
parent
61c7ce857e
commit
8a3135d17b
@ -77,7 +77,7 @@ fn warmed_up(bank: &Bank, stake_pubkey: &Pubkey) -> bool {
|
||||
== stake.stake(
|
||||
bank.epoch(),
|
||||
Some(
|
||||
&from_account::<StakeHistory>(
|
||||
&from_account::<StakeHistory, _>(
|
||||
&bank.get_account(&sysvar::stake_history::id()).unwrap(),
|
||||
)
|
||||
.unwrap(),
|
||||
@ -92,7 +92,7 @@ fn get_staked(bank: &Bank, stake_pubkey: &Pubkey) -> u64 {
|
||||
.stake(
|
||||
bank.epoch(),
|
||||
Some(
|
||||
&from_account::<StakeHistory>(
|
||||
&from_account::<StakeHistory, _>(
|
||||
&bank.get_account(&sysvar::stake_history::id()).unwrap(),
|
||||
)
|
||||
.unwrap(),
|
||||
|
Reference in New Issue
Block a user