Skip to content

Commit

Permalink
revert test to use Account for serialization (solana-labs#16063)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Mar 22, 2021
1 parent 2fc609a commit fde43a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/vote_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ mod tests {
fn new_rand_vote_account<R: Rng>(
rng: &mut R,
node_pubkey: Option<Pubkey>,
) -> (AccountSharedData, VoteState) {
) -> (Account, VoteState) {
let vote_init = VoteInit {
node_pubkey: node_pubkey.unwrap_or_else(Pubkey::new_unique),
authorized_voter: Pubkey::new_unique(),
Expand All @@ -331,7 +331,7 @@ mod tests {
unix_timestamp: rng.gen(),
};
let vote_state = VoteState::new(&vote_init, &clock);
let account = AccountSharedData::new_data(
let account = Account::new_data(
rng.gen(), // lamports
&VoteStateVersions::new_current(vote_state.clone()),
&Pubkey::new_unique(), // owner
Expand Down

0 comments on commit fde43a9

Please sign in to comment.