Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 68827b8

Browse files
authored
Remove usage of VoteStateVersions::vote_state_size_of (#6549)
1 parent 7bd0b42 commit 68827b8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

single-pool/cli/tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use {
2121
solana_test_validator::{TestValidator, TestValidatorGenesis, UpgradeableProgramInfo},
2222
solana_vote_program::{
2323
vote_instruction::{self, CreateVoteAccountConfig},
24-
vote_state::{VoteInit, VoteState, VoteStateVersions},
24+
vote_state::{VoteInit, VoteState},
2525
},
2626
spl_token_client::client::{ProgramClient, ProgramRpcClient, ProgramRpcClientSendTransaction},
2727
std::{path::PathBuf, process::Command, str::FromStr, sync::Arc, time::Duration},
@@ -182,7 +182,7 @@ async fn create_vote_account(
182182
},
183183
vote_rent,
184184
CreateVoteAccountConfig {
185-
space: VoteStateVersions::vote_state_size_of(true) as u64,
185+
space: VoteState::size_of() as u64,
186186
..Default::default()
187187
},
188188
));

single-pool/program/tests/helpers/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use {
1515
},
1616
solana_vote_program::{
1717
self, vote_instruction,
18-
vote_state::{VoteInit, VoteState, VoteStateVersions},
18+
vote_state::{VoteInit, VoteState},
1919
},
2020
spl_associated_token_account as atoken,
2121
spl_single_pool::{
@@ -380,7 +380,7 @@ pub async fn create_vote(
380380
},
381381
rent_voter,
382382
vote_instruction::CreateVoteAccountConfig {
383-
space: VoteStateVersions::vote_state_size_of(true) as u64,
383+
space: VoteState::size_of() as u64,
384384
..Default::default()
385385
},
386386
));

stake-pool/program/tests/helpers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ pub async fn create_vote(
626626
},
627627
rent_voter,
628628
vote_instruction::CreateVoteAccountConfig {
629-
space: VoteStateVersions::vote_state_size_of(true) as u64,
629+
space: VoteState::size_of() as u64,
630630
..Default::default()
631631
},
632632
));

0 commit comments

Comments
 (0)