From fde43a906df70ff5613fe47174acb50d72536e59 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Mon, 22 Mar 2021 17:48:09 -0500 Subject: [PATCH] revert test to use Account for serialization (#16063) --- runtime/src/vote_account.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/vote_account.rs b/runtime/src/vote_account.rs index 104ca85e7f..38a79a6a20 100644 --- a/runtime/src/vote_account.rs +++ b/runtime/src/vote_account.rs @@ -316,7 +316,7 @@ mod tests { fn new_rand_vote_account( rng: &mut R, node_pubkey: Option, - ) -> (AccountSharedData, VoteState) { + ) -> (Account, VoteState) { let vote_init = VoteInit { node_pubkey: node_pubkey.unwrap_or_else(Pubkey::new_unique), authorized_voter: Pubkey::new_unique(), @@ -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