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 Jun 28, 2024
1 parent bebd5ac commit e42e7fd
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 e42e7fd

Please sign in to comment.