Skip to content

Commit

Permalink
vote: remove deprecated ixs (anza-xyz#1906)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinSekar authored and samkim-crypto committed Jul 31, 2024
1 parent ba93719 commit 52e0b92
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions sdk/program/src/vote/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,49 +257,6 @@ impl<'a> Default for CreateVoteAccountConfig<'a> {
}
}

#[deprecated(
since = "1.16.0",
note = "Please use `create_account_with_config()` instead."
)]
pub fn create_account(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
vote_init: &VoteInit,
lamports: u64,
) -> Vec<Instruction> {
create_account_with_config(
from_pubkey,
vote_pubkey,
vote_init,
lamports,
CreateVoteAccountConfig::default(),
)
}

#[deprecated(
since = "1.16.0",
note = "Please use `create_account_with_config()` instead."
)]
pub fn create_account_with_seed(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
base: &Pubkey,
seed: &str,
vote_init: &VoteInit,
lamports: u64,
) -> Vec<Instruction> {
create_account_with_config(
from_pubkey,
vote_pubkey,
vote_init,
lamports,
CreateVoteAccountConfig {
with_seed: Some((base, seed)),
..CreateVoteAccountConfig::default()
},
)
}

pub fn create_account_with_config(
from_pubkey: &Pubkey,
vote_pubkey: &Pubkey,
Expand Down

0 comments on commit 52e0b92

Please sign in to comment.